Skip to content
Permalink
Browse files

Add more info to token number on user page

  • Loading branch information...
Smashman committed Jun 26, 2019
1 parent 6da2035 commit f5efe439d1e60c6fdb625e282c28f920f872ba61
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/templates/users/page.html
@@ -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 -%}

0 comments on commit f5efe43

Please sign in to comment.
You can’t perform that action at this time.