1 {% extends basetemplate %}
7 {% trans "Dashboard" %}
9 {% block description %}
10 {% trans "Welcome to the OSQA administration area." %}
13 {% block admincontent %}
14 <div class="module" style="width:49%; display: inline-block; vertical-align: top;">
15 <table style="width: 100%; height: 100%;">
16 <caption>{% trans "Quick statistics" %}</caption>
19 {{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})
24 {{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})
29 {{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})
34 <div class="module" style="width:49%; display: inline-block;">
36 <caption>{%trans "Site status" %}</caption>
39 {% ifequal settings_pack "bootstrap" %}
40 {% trans "Your site is running in bootstrap mode, click the button below to revert to defaults." %}<br />
42 {% ifequal settings_pack "default" %}
43 {% trans "Your site is running in standard mode, click the button below to run in bootstrap mode." %}<br />
45 {% trans "Your site is running with some customized settings, click the buttons below to run with defaults or in bootstrap mode" %}
48 {% ifnotequal settings_pack "default" %}
49 <button onclick="if (window.confirm('{% trans "Are you sure you want to revert to the defaults?" %}')) window.location='{% url "admin_go_defaults" %}';">{% trans "revert to defaults" %}</button>
51 {% ifnotequal settings_pack "bootstrap" %}
52 <button onclick="if (window.confirm('{% trans "Are you sure you want to run bootstrap mode?" %}')) window.location='{% url "admin_go_bootstrap" %}';">{% trans "go bootstrap" %}</button>
58 <em>"Bootstrap mode" relaxes the minimum required reputation to perform actions like voting and commenting.
59 This is useful to help new communities get started.</em>
64 <div class="module" style="width:98%; display: inline-block;">
66 <caption>{% trans "Recent activity" %}</caption>
69 <table id="result_list" width="100%">
70 {% for activity in recent_activity.paginator.page %}
71 <tr class="{% cycle 'row1' 'row2' %}"><td>{% activity_item activity request.user %}</td></tr>
78 {{ recent_activity.paginator.page_numbers }}