index.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {% extends "admin/layout.html" %}
  2. {% load i18n %}
  3. {% load humanize %}
  4. {% load url from future %}
  5. {% from "admin/macros.html" import page_title %}
  6. {% block title %}{{ page_title(title=_('Admin Home')) }}{% endblock %}
  7. {% block content %}
  8. <div class="page-header">
  9. <h1>{% trans %}Admin Home{% endtrans %} <small>{% trans %}Misago {{version}}{% endtrans %}</small></h1>
  10. </div>
  11. {% if monitor.users_inactive|int > 0 %}
  12. <div class="alert alert-info alert-form">
  13. <div class="alert-icon"><span><i class="icon-info-sign icon-white"></i></span></div>
  14. <p><a href="{{ url('admin_users_inactive') }}">{%- trans count=monitor.users_inactive|int, total=monitor.users_inactive|int|intcomma -%}
  15. There is one inactive user.
  16. {%- pluralize -%}
  17. There are {{ total }} inactive users.
  18. {%- endtrans -%}</a></p>
  19. </div>
  20. {% endif %}
  21. <div class="row">
  22. <div class="span8">
  23. <h2>{% trans count=admins|length, total=admins|length|intcomma -%}
  24. One Administrator Online
  25. {%- pluralize -%}
  26. {{ total }} Administrators Online
  27. {%- endtrans %}</h2>
  28. <table class="table table-striped table-users list-tiny">
  29. <tbody>
  30. {% for session in admins %}
  31. <tr>
  32. <td>
  33. <a href="{{ url('user', username=session.user.username_slug, user=session.user.pk) }}"><img src="{{ session.user.get_avatar(22) }}" class="avatar" alt=""> <strong>{{ session.user.username }}</strong></a>
  34. <div class="muted" style="float: right;">{% trans start=session.start|timesince, ip=session.ip %}started {{ start }} ago from {{ ip }}{% endtrans %} <span class="info-popover tooltip-top" title="{% trans last=session.last|timesince %}Last click was {{ last }} ago{% endtrans %}"><i class="icon-time"></i></span></div>
  35. </td>
  36. </tr>{% endfor %}
  37. </tbody>
  38. </table>
  39. </div>
  40. <div class="span4">
  41. <h3>{% trans %}Board Statistics{% endtrans %}</h3>
  42. <table class="table table-striped">
  43. <tbody>
  44. <tr>
  45. <td class="span2 stat-title"><strong>{% trans %}Users{% endtrans %}</strong></td>
  46. <td>{{ users|intcomma }}</td>
  47. </tr>
  48. <tr>
  49. <td class="span2 stat-title"><strong>{% trans %}Posts{% endtrans %}</strong></td>
  50. <td>{{ posts|intcomma }}</td>
  51. </tr>
  52. <tr>
  53. <td class="span2 stat-title"><strong>{% trans %}Threads{% endtrans %}</strong></td>
  54. <td>{{ threads|intcomma }}</td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. </div>
  59. </div>
  60. {% endblock %}