]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/index.html
Merge pull request #5 from lra/french
[osqa.git] / forum / skins / default / templates / osqaadmin / index.html
1 {% extends "osqaadmin/base.html" %}
2
3 {% load i18n %}
4 {% load user_tags %}
5
6 {% block subtitle %}
7     {% trans "Dashboard" %}
8 {% endblock %}
9 {% block description %}
10     {% trans "Welcome to the OSQA administration area." %}
11 {% endblock %}
12
13 {% block admincontent %}
14     <table width="100%">
15         <tr>
16             <td width="50%" valign="top">
17                 <h3>{%trans "Site statistics" %}</h3>
18                 <table>
19                     <tr>
20                         <td>
21                         {{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})
22                         </td>
23                     </tr>
24                     <tr>
25                         <td>
26                         {{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})
27                         </td>
28                     </tr>
29                     <tr>
30                         <td>
31                         {{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})
32                         </td>
33                     </tr>
34                 </table>
35             </td>
36             <td valign="top">
37                 <h3>{%trans "Site status" %}</h3>
38                 <table>
39                     <tr>
40                         <td>
41                             {% ifequal settings_pack "bootstrap" %}
42                                 {% trans "Your site is running in bootstrap mode, click the button below to revert to defaults." %}<br />
43                             {% else %}
44                                 {% ifequal settings_pack "default" %}
45                                     {% trans "Your site is running in standard mode, click the button below to run in bootstrap mode." %}<br />
46                                 {% else %}
47                                     {% trans "Your site is running with some customized settings, click the buttons below to run with defaults or in bootstrap mode" %}
48                                 {% endifequal %}
49                             {% endifequal %}
50                             {% ifnotequal settings_pack "default" %}
51                                 <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>
52                             {% endifnotequal %}
53                             {% ifnotequal settings_pack "bootstrap" %}
54                                 <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>
55                             {% endifnotequal %}
56                         </td>
57                     </tr>
58                     <tr>
59                         <td>
60                             <em>"Bootstrap mode" relaxes the minimum required reputation to perform actions like voting and commenting.
61                             This is useful to help new communities get started.</em>
62                         </td>
63                     </tr>
64                 </table>
65                 <h3>{%trans "Recalculate scores and reputation" %}</h3>
66                  <button onclick="if (window.confirm('{% trans "This is a heavy operation, are you sure?" %}')) window.location='{% url "admin_denormalize" %}';">{% trans "Recalculate" %}</button>
67             </td>
68         </tr>
69         <tr>
70             <td colspan="2">
71                 <h3>{% trans "Recent activity" %}</h3>
72                 <table width="100%">
73                 {% for activity in recent_activity %}
74                     {% activity_item activity request.user %}
75                 {% endfor %}
76                 </table>
77             </td>
78         </tr>
79     </table>
80 {% endblock %}