]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/index.html
e9a8bf56ad02432cee420719ba7bb652c3c1721e
[osqa.git] / forum / skins / default / templates / osqaadmin / index.html
1 {% extends "osqaadmin/base.html" %}\r
2 \r
3 {% load i18n %}\r
4 \r
5 {% block adminjs %}\r
6  \r
7 {% endblock %}\r
8 \r
9 {% block subtitle %}\r
10     {% trans "Dashboard" %}\r
11 {% endblock %}\r
12 {% block description %}\r
13     {% trans "Welcome to the OSQA administration area." %}\r
14 {% endblock %}\r
15 \r
16 {% block admincontent %}\r
17     <table width="100%">\r
18         <tr>\r
19             <td width="50%" valign="top">\r
20                 <h3>{%trans "Site statistics" %}</h3>\r
21                 <table>\r
22                     <tr>\r
23                         <td>\r
24                         {{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})\r
25                         </td>\r
26                     </tr>\r
27                     <tr>\r
28                         <td>\r
29                         {{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})\r
30                         </td>\r
31                     </tr>\r
32                     <tr>\r
33                         <td>\r
34                         {{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})\r
35                         </td>\r
36                     </tr>\r
37                 </table>\r
38             </td>\r
39             <td valign="top">\r
40                 <h3>{%trans "Site status" %}</h3>\r
41                 <table>\r
42                     <tr>\r
43                         <td>\r
44                             {% ifequal settings_pack "bootstrap" %}\r
45                                 {% trans "Your site is running in bootstrap mode, click the button bellow to revert to defaults." %}<br />\r
46                             {% else %}\r
47                                 {% ifequal settings_pack "default" %}\r
48                                     {% trans "Your site is running in standard mode, click the button bellow to run in bootstrap mode." %}<br />\r
49                                 {% else %}\r
50                                     {% trans "Your site is running with some customized settings, click the buttons bellow to run with defaults or in bootstrap mode" %}\r
51                                 {% endifequal %}\r
52                             {% endifequal %}\r
53                             {% ifnotequal settings_pack "default" %}\r
54                                 <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
55                             {% endifnotequal %}\r
56                             {% ifnotequal settings_pack "bootstrap" %}\r
57                                 <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
58                             {% endifnotequal %}\r
59                         </td>\r
60                     </tr>\r
61                 </table>\r
62             </td>\r
63         </tr>\r
64         <tr>\r
65             <td colspan="2">\r
66                 <h3>{% trans "Recent activity" %}</h3>\r
67                 <table width="100%">\r
68                 {% for activity in recent_activity %}\r
69                 <tr>\r
70                     <td>\r
71                         {{ activity.user.get_profile_link }} {{ activity.type_as_string }} {% trans "on" %} <a href="{{ activity.question.get_absolute_url }}">{{ activity.question.title }}</a><br />\r
72                         <sub>{{ activity.active_at|date }}, {{ activity.active_at|time }}</sub>\r
73                     </td>\r
74                 </tr>\r
75                 {% endfor %}\r
76                 </table>\r
77             </td>\r
78         </tr>\r
79     </table>        \r
80 {% endblock %}