index.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% extends theme("layout.html") %}
  2. {% block content %}
  3. <ol class="breadcrumb flaskbb-breadcrumb">
  4. <li><a href="{{ url_for('forum.index') }}">{% trans %}Forum{% endtrans %}</a></li>
  5. </ol>
  6. <div class="index-view">
  7. {% for category, forums in categories %}
  8. {% include theme("forum/category_layout.html") %}
  9. {% endfor %}
  10. </div>
  11. <div class="panel panel-default">
  12. <div class="panel-heading">
  13. {% trans %}Board Statistics{% endtrans %}
  14. [<a href="{{ url_for('forum.who_is_online') }}" onclick="window.open(this.href, 'wio_window','width=500,height=500'); return false;">{% trans %}Who is online?{% endtrans %}</a>]
  15. </div>
  16. <div class="panel-body">
  17. <!-- Forum Stats -->
  18. <table class="table table-bordered">
  19. <thead>
  20. <tr>
  21. <td colspan="2">
  22. </td>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <tr>
  27. <td>
  28. {% trans %}Total number of registered users{% endtrans %}: <strong>{{ user_count }}</strong> <br />
  29. {% trans %}Total number of topics{% endtrans %}: <strong>{{ topic_count }}</strong> <br />
  30. {% trans %}Total number of posts{% endtrans %}: <strong>{{ post_count }}</strong> <br />
  31. </td>
  32. <td>
  33. {% trans %}Newest registered user{% endtrans %}: {% if newest_user %}<a href="{{ newest_user.url }}">{{ newest_user.username }}</a>{% else %}{% trans %}No users{% endtrans %}{% endif %}<br />
  34. {% trans %}Registered users online{% endtrans %}: <strong>{{ online_users }}</strong> <br />
  35. {% if config["REDIS_ENABLED"] %}
  36. {% trans %}Guests online{% endtrans %}: <strong>{{ online_guests }}</strong> <br />
  37. {% endif %}
  38. </td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. </div>
  44. {% endblock %}