]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/index.html
Migrate to Django 1.6
[osqa.git] / forum / skins / default / templates / osqaadmin / index.html
index 30c3f65e415c24b18ca31d82d56d0f2ffbc2706e..9943dcaaa2f22e59079904dc43c8768270801f00 100644 (file)
@@ -1,80 +1,80 @@
-{% extends "osqaadmin/base.html" %}\r
-\r
-{% load i18n %}\r
-{% load user_tags %}\r
-\r
-{% block subtitle %}\r
-    {% trans "Dashboard" %}\r
-{% endblock %}\r
-{% block description %}\r
-    {% trans "Welcome to the OSQA administration area." %}\r
-{% endblock %}\r
-\r
-{% block admincontent %}\r
-    <table width="100%">\r
-        <tr>\r
-            <td width="50%" valign="top">\r
-                <h3>{%trans "Site statistics" %}</h3>\r
-                <table>\r
-                    <tr>\r
-                        <td>\r
-                        {{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})\r
-                        </td>\r
-                    </tr>\r
-                    <tr>\r
-                        <td>\r
-                        {{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})\r
-                        </td>\r
-                    </tr>\r
-                    <tr>\r
-                        <td>\r
-                        {{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})\r
-                        </td>\r
-                    </tr>\r
-                </table>\r
-            </td>\r
-            <td valign="top">\r
-                <h3>{%trans "Site status" %}</h3>\r
-                <table>\r
-                    <tr>\r
-                        <td>\r
-                            {% ifequal settings_pack "bootstrap" %}\r
-                                {% trans "Your site is running in bootstrap mode, click the button below to revert to defaults." %}<br />\r
-                            {% else %}\r
-                                {% ifequal settings_pack "default" %}\r
-                                    {% trans "Your site is running in standard mode, click the button below to run in bootstrap mode." %}<br />\r
-                                {% else %}\r
-                                    {% trans "Your site is running with some customized settings, click the buttons below to run with defaults or in bootstrap mode" %}\r
-                                {% endifequal %}\r
-                            {% endifequal %}\r
-                            {% ifnotequal settings_pack "default" %}\r
-                                <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
-                            {% endifnotequal %}\r
-                            {% ifnotequal settings_pack "bootstrap" %}\r
-                                <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
-                            {% endifnotequal %}\r
-                        </td>\r
-                    </tr>\r
-                    <tr>\r
-                        <td>\r
-                            <em>"Bootstrap mode" relaxes the minimum required reputation to perform actions like voting and commenting.\r
-                            This is useful to help new communities get started.</em>\r
-                        </td>\r
-                    </tr>\r
-                </table>\r
-                <h3>{%trans "Recalculate scores and reputation" %}</h3>\r
-                 <button onclick="if (window.confirm('{% trans "This is a heavy operation, are you sure?" %}')) window.location='{% url admin_denormalize %}';">{% trans "Recalculate" %}</button>\r
-            </td>\r
-        </tr>\r
-        <tr>\r
-            <td colspan="2">\r
-                <h3>{% trans "Recent activity" %}</h3>\r
-                <table width="100%">\r
-                {% for activity in recent_activity %}\r
-                    {% activity_item activity request.user %}\r
-                {% endfor %}\r
-                </table>\r
-            </td>\r
-        </tr>\r
-    </table>        \r
+{% extends "osqaadmin/base.html" %}
+
+{% load i18n %}
+{% load user_tags %}
+
+{% block subtitle %}
+    {% trans "Dashboard" %}
+{% endblock %}
+{% block description %}
+    {% trans "Welcome to the OSQA administration area." %}
+{% endblock %}
+
+{% block admincontent %}
+    <table width="100%">
+        <tr>
+            <td width="50%" valign="top">
+                <h3>{%trans "Site statistics" %}</h3>
+                <table>
+                    <tr>
+                        <td>
+                        {{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                        {{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                        {{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})
+                        </td>
+                    </tr>
+                </table>
+            </td>
+            <td valign="top">
+                <h3>{%trans "Site status" %}</h3>
+                <table>
+                    <tr>
+                        <td>
+                            {% ifequal settings_pack "bootstrap" %}
+                                {% trans "Your site is running in bootstrap mode, click the button below to revert to defaults." %}<br />
+                            {% else %}
+                                {% ifequal settings_pack "default" %}
+                                    {% trans "Your site is running in standard mode, click the button below to run in bootstrap mode." %}<br />
+                                {% else %}
+                                    {% trans "Your site is running with some customized settings, click the buttons below to run with defaults or in bootstrap mode" %}
+                                {% endifequal %}
+                            {% endifequal %}
+                            {% ifnotequal settings_pack "default" %}
+                                <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>
+                            {% endifnotequal %}
+                            {% ifnotequal settings_pack "bootstrap" %}
+                                <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>
+                            {% endifnotequal %}
+                        </td>
+                    </tr>
+                    <tr>
+                        <td>
+                            <em>"Bootstrap mode" relaxes the minimum required reputation to perform actions like voting and commenting.
+                            This is useful to help new communities get started.</em>
+                        </td>
+                    </tr>
+                </table>
+                <h3>{%trans "Recalculate scores and reputation" %}</h3>
+                 <button onclick="if (window.confirm('{% trans "This is a heavy operation, are you sure?" %}')) window.location='{% url "admin_denormalize" %}';">{% trans "Recalculate" %}</button>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2">
+                <h3>{% trans "Recent activity" %}</h3>
+                <table width="100%">
+                {% for activity in recent_activity %}
+                    {% activity_item activity request.user %}
+                {% endfor %}
+                </table>
+            </td>
+        </tr>
+    </table>
 {% endblock %}
\ No newline at end of file