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