123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- {% extends "admin/layout.html" %}
- {% load i18n %}
- {% load humanize %}
- {% load url from future %}
- {% from "admin/macros.html" import page_title %}
- {% block title %}{{ page_title(title=_('Admin Home')) }}{% endblock %}
- {% block content %}
- <div class="page-header">
- <h1>{% trans %}Admin Home{% endtrans %} <small>{% trans %}Misago {{version}}{% endtrans %}</small></h1>
- </div>
- {% if monitor.users_inactive|int > 0 %}
- <div class="alert alert-info alert-form">
- <div class="alert-icon"><span><i class="icon-info-sign icon-white"></i></span></div>
- <p><a href="{% url 'admin_users_inactive' %}">{%- trans count=monitor.users_inactive|int, total=monitor.users_inactive|int|intcomma -%}
- There is one inactive user.
- {%- pluralize -%}
- There are {{ total }} inactive users.
- {%- endtrans -%}</a></p>
- </div>
- {% endif %}
- <div class="row">
- <div class="span8">
- <h2>Administrators Online</h2>
- <table class="table table-striped table-users list-tiny">
- <thead>
- <tr>
- <th{% if admins|length > 1 %} colspan="2"{% endif %}>{% trans count=admins|length, total=admins|length|intcomma -%}
- One Administrator Online
- {%- pluralize -%}
- {{ total }} Administrators Online
- {%- endtrans %}</th>
- </tr>
- </thead>
- <tbody>
- <tr>{% for session in admins %}
- <td {% if admins|length > 1 %} {% if loop.last and loop.index is odd %}colspan="2"{% else %}class="span4"{% endif %}{% endif %}>
- <a href="{% url 'user' username=session.user.username_slug, user=session.user.pk %}"><img src="{{ session.user.get_avatar('medium') }}" class="avatar" alt="{% trans %}Admin's Avatar{% endtrans %}" title="{% trans %}Admin's Avatar{% endtrans %}"> <strong>{{ session.user.username }}</strong></a>
- <div class="muted" style="float: right;">{% trans start=session.start|timesince %}started {{ start }} ago{% 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>
- </td>{% if not loop.last and loop.index is even %}
- </tr>
- <tr>{% endif %}
- {% endfor %}</tr>
- </tbody>
- </table>
-
- <hr>
-
- <h3>{% trans %}Board Statistics{% endtrans %}</h3>
- <table class="table table-striped">
- <tbody>
- <tr>
- <td class="span2 stat-title"><strong>{% trans %}Users{% endtrans %}</strong></td>
- <td>{{ users|intcomma }}</td>
- </tr>
- <tr>
- <td class="span2 stat-title"><strong>{% trans %}Posts{% endtrans %}</strong></td>
- <td>{{ posts|intcomma }}</td>
- </tr>
- <tr>
- <td class="span2 stat-title"><strong>{% trans %}Threads{% endtrans %}</strong></td>
- <td>{{ threads|intcomma }}</td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="span4">
- <h3>{% trans %}Quick Action{% endtrans %}</h3>
- <form>
- <div class="side-search quick-action">
- <div class="control-group">
- <label class="control-label" for="inputEmail">User to find:</label>
- <div class="controls">
- <input type="text" id="inputEmail" class="span4" placeholder="Email">
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">Actions to run:</label>
- <select class="span4">
- <option>Dont change account state</option>
- <option>Activate user account</option>
- <option>Reset user password</option>
- <option>Ban user for 15 minutes</option>
- <option>Ban user permanently</option>
- </select>
- <label class="checkbox">
- <input type="checkbox" value="">
- Remove and block user avatar
- </label>
- <label class="checkbox">
- <input type="checkbox" value="">
- Remove and block user signature
- </label>
- </div>
- <div class="form-actions">
- <button type="submit" class="btn btn-primary">Run Action</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- {% endblock %}
|