user_state.html 1.2 KB

1234567891011121314151617181920212223
  1. {% load i18n misago_capture %}
  2. {% if state.is_banned %}
  3. {% capture trimmed as state_name %}
  4. {% if state.banned_until %}
  5. {% blocktrans trimmed with ban_date=state.formatted_ban_expiration_date %}
  6. Banned until {{ ban_date }}
  7. {% endblocktrans %}
  8. {% else %}
  9. {% trans "Banned" %}
  10. {% endif %}
  11. {% endcapture %}
  12. <span class="fa fa-lock fa-fw tooltip-top user-banned" title="{{ state_name }}"></span>
  13. {% elif state.is_hidden %}
  14. <span class="fa fa-circle-o fa-fw tooltip-top user-offline" title="{% trans "Hides activity" %}"></span>
  15. {% elif state.is_online_hidden %}
  16. <span class="fa fa-circle fa-fw tooltip-top user-online" title="{% trans "Online, hidden" %}"></span>
  17. {% elif state.is_offline_hidden %}
  18. <span class="fa fa-circle-o fa-fw tooltip-top user-offline" title="{% blocktrans with last_seen=state.last_click %}Offline and hidden, last seen {{ last_seen }}{% endblocktrans %}"></span>
  19. {% elif state.is_online %}
  20. <span class="fa fa-circle fa-fw tooltip-top user-online" title="{% trans "Online" %}"></span>
  21. {% elif state.is_offline %}
  22. <span class="fa fa-circle-o fa-fw tooltip-top user-offline" title="{% blocktrans with last_seen=state.last_click %}Offline, last seen {{ last_seen }}{% endblocktrans %}"></span>
  23. {% endif%}