Skip to content

Commit

Permalink
Add more info to token number on user page
Browse files Browse the repository at this point in the history
  • Loading branch information
Smashman committed Jun 26, 2019
1 parent 6da2035 commit f5efe43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/users/page.html
Expand Up @@ -3,7 +3,7 @@
{{ user.name }}
<div><a href="{{ user.perma_profile_url }}" target="_blank">Steam</a></div>
{%- if current_user.is_moderator() -%}
<div>Current Tokens: {{ user.upload_credits }}</div>
<div>Current Tokens: {% if user.upload_credits != -1 -%} {{ user.upload_credits | default(0) }} {%- else -%} Infinite {%- endif %} token{{ user.upload_credits | pluralize }}</div>
<div>Is moderator: {{ 'Yes' if user.is_moderator() else 'No' }}</div>
<div><a href="{{ url_for('moderator.token', user_id=user.account_id) }}">Grant Tokens and Manage User</a></div>
{%- endif -%}
Expand Down

0 comments on commit f5efe43

Please sign in to comment.