1 {% extends "osqaadmin/base.html" %}
\r
7 {% trans "Dashboard" %}
\r
9 {% block description %}
\r
10 {% trans "Welcome to the OSQA administration area." %}
\r
13 {% block admincontent %}
\r
14 <table width="100%">
\r
16 <td width="50%" valign="top">
\r
17 <h3>{%trans "Site statistics" %}</h3>
\r
21 {{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})
\r
26 {{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})
\r
31 {{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})
\r
37 <h3>{%trans "Site status" %}</h3>
\r
41 {% ifequal settings_pack "bootstrap" %}
\r
42 {% trans "Your site is running in bootstrap mode, click the button bellow to revert to defaults." %}<br />
\r
44 {% ifequal settings_pack "default" %}
\r
45 {% trans "Your site is running in standard mode, click the button bellow to run in bootstrap mode." %}<br />
\r
47 {% trans "Your site is running with some customized settings, click the buttons bellow to run with defaults or in bootstrap mode" %}
\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
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
63 <h3>{% trans "Recent activity" %}</h3>
\r
64 <table width="100%">
\r
65 {% for activity in recent_activity %}
\r
66 {% activity_item activity %}
\r