1 {% extends "osqaadmin/base.html" %}
\r 
  10     {% trans "Dashboard" %}
\r 
  12 {% block description %}
\r 
  13     {% trans "Welcome to the OSQA administration area." %}
\r 
  16 {% block admincontent %}
\r 
  17     <table width="100%">
\r 
  19             <td width="50%" valign="top">
\r 
  20                 <h3>{%trans "Site statistics" %}</h3>
\r 
  24                         {{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})
\r 
  29                         {{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})
\r 
  34                         {{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})
\r 
  40                 <h3>{%trans "Site status" %}</h3>
\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 
  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 
  50                                     {% trans "Your site is running with some customized settings, click the buttons bellow to run with defaults or in bootstrap mode" %}
\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 
  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 
  66                 <h3>{% trans "Recent activity" %}</h3>
\r 
  67                 <table width="100%">
\r 
  68                 {% for activity in recent_activity %}
\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