state.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% load i18n misago_capture %}
  2. {% if state.is_banned %}
  3. <span class="fa fa-lock fa-fw user-banned"></span>
  4. {% if state.banned_until %}
  5. {% blocktrans trimmed with ban_date=state.banned_until|date %}
  6. Banned until {{ ban_date }}
  7. {% endblocktrans %}
  8. {% else %}
  9. {% trans "Banned" %}
  10. {% endif %}
  11. {% elif state.is_hidden %}
  12. <span class="fa fa-circle-o fa-fw user-offline"></span>
  13. {% trans "Hides activity" %}
  14. {% elif state.is_online_hidden %}
  15. <span class="fa fa-circle fa-fw user-online"></span>
  16. {% trans "Online, hidden" %}
  17. {% elif state.is_offline_hidden %}
  18. {% capture trimmed as last_seen %}
  19. <abbr class="tooltip-top dynamic time-ago" title="{{ state.last_click }}" data-timestamp="{{ state.last_click|date:"c" }}">
  20. {{ state.last_click|date }}
  21. </abbr>
  22. {% endcapture %%}
  23. <span class="fa fa-circle-o fa-fw user-offline"></span>
  24. {% blocktrans trimmed with last_seen=last_seen|safe %}
  25. Seen {{ last_seen }}, hidden
  26. {% endblocktrans %}
  27. {% elif state.is_online %}
  28. <span class="fa fa-circle fa-fw user-online"></span>
  29. {% trans "Online" %}
  30. {% elif state.is_offline %}
  31. {% capture trimmed as last_seen %}
  32. <abbr class="tooltip-top dynamic time-ago" title="{{ state.last_click }}" data-timestamp="{{ state.last_click|date:"c" }}">
  33. {{ state.last_click|date }}
  34. </abbr>
  35. {% endcapture %%}
  36. <span class="fa fa-circle-o fa-fw user-offline"></span>
  37. {% blocktrans trimmed with last_seen=last_seen|safe %}
  38. Seen {{ last_seen }}
  39. {% endblocktrans %}
  40. {% endif%}