index.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  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 widget-panel">
  12. <div class="panel-heading widget-head">
  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. <div class="row widget-row">
  18. <div class="col-md-6">
  19. <p class="stats">{% trans %}Total number of registered users{% endtrans %}: <strong>{{ user_count }}</strong></p>
  20. <p class="stats">{% trans %}Total number of topics{% endtrans %}: <strong>{{ topic_count }}</strong></p>
  21. <p class="stats">{% trans %}Total number of posts{% endtrans %}: <strong>{{ post_count }}</strong></p>
  22. </div>
  23. <div class="col-md-6 pull-right">
  24. <p class="stats">{% trans %}Newest registered user{% endtrans %}: {% if newest_user %}<a href="{{ newest_user.url }}">{{ newest_user.username }}</a>{% else %}{% trans %}No users{% endtrans %}{% endif %}</p>
  25. <p class="stats">{% trans %}Registered users online{% endtrans %}: <strong>{{ online_users }}</strong></p>
  26. {% if config["REDIS_ENABLED"] %}
  27. <p class="stats">{% trans %}Guests online{% endtrans %}: <strong>{{ online_guests }}</strong></p>
  28. {% endif %}
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. {% endblock %}