index.html 2.4 KB

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