12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- {% extends theme("layout.html") %}
- {% block content %}
- <ol class="breadcrumb flaskbb-breadcrumb">
- <li><a href="{{ url_for('forum.index') }}">{% trans %}Forum{% endtrans %}</a></li>
- </ol>
- <div class="index-view">
- {% for category, forums in categories %}
- {% include theme("forum/category_layout.html") %}
- {% endfor %}
- </div>
- <div class="panel panel-default">
- <div class="panel-heading">
- {% trans %}Board Statistics{% endtrans %}
- [<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>]
- </div>
- <div class="panel-body">
- <table class="table table-bordered">
- <thead>
- <tr>
- <td colspan="2">
- </td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- {% trans %}Total number of registered users{% endtrans %}: <strong>{{ user_count }}</strong> <br />
- {% trans %}Total number of topics{% endtrans %}: <strong>{{ topic_count }}</strong> <br />
- {% trans %}Total number of posts{% endtrans %}: <strong>{{ post_count }}</strong> <br />
- </td>
- <td>
- {% trans %}Newest registered user{% endtrans %}: {% if newest_user %}<a href="{{ newest_user.url }}">{{ newest_user.username }}</a>{% else %}{% trans %}No users{% endtrans %}{% endif %}<br />
- {% trans %}Registered users online{% endtrans %}: <strong>{{ online_users }}</strong> <br />
- {% if config["REDIS_ENABLED"] %}
- {% trans %}Guests online{% endtrans %}: <strong>{{ online_guests }}</strong> <br />
- {% endif %}
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- {% endblock %}
|