]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/index.html
osqa-342
[osqa.git] / forum / skins / default / templates / osqaadmin / index.html
index e9a8bf56ad02432cee420719ba7bb652c3c1721e..30c3f65e415c24b18ca31d82d56d0f2ffbc2706e 100644 (file)
@@ -1,10 +1,7 @@
 {% extends "osqaadmin/base.html" %}\r
 \r
 {% load i18n %}\r
 {% extends "osqaadmin/base.html" %}\r
 \r
 {% load i18n %}\r
-\r
-{% block adminjs %}\r
\r
-{% endblock %}\r
+{% load user_tags %}\r
 \r
 {% block subtitle %}\r
     {% trans "Dashboard" %}\r
 \r
 {% block subtitle %}\r
     {% trans "Dashboard" %}\r
                     <tr>\r
                         <td>\r
                             {% ifequal settings_pack "bootstrap" %}\r
                     <tr>\r
                         <td>\r
                             {% ifequal settings_pack "bootstrap" %}\r
-                                {% trans "Your site is running in bootstrap mode, click the button bellow to revert to defaults." %}<br />\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
                             {% else %}\r
                                 {% ifequal settings_pack "default" %}\r
-                                    {% trans "Your site is running in standard mode, click the button bellow to run in bootstrap mode." %}<br />\r
+                                    {% trans "Your site is running in standard mode, click the button below to run in bootstrap mode." %}<br />\r
                                 {% else %}\r
                                 {% else %}\r
-                                    {% trans "Your site is running with some customized settings, click the buttons bellow to run with defaults or in bootstrap mode" %}\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
                                 {% endifequal %}\r
                             {% endifequal %}\r
                             {% ifnotequal settings_pack "default" %}\r
                             {% endifnotequal %}\r
                         </td>\r
                     </tr>\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
                 </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>\r
         </tr>\r
         <tr>\r
                 <h3>{% trans "Recent activity" %}</h3>\r
                 <table width="100%">\r
                 {% for activity in recent_activity %}\r
                 <h3>{% trans "Recent activity" %}</h3>\r
                 <table width="100%">\r
                 {% for activity in recent_activity %}\r
-                <tr>\r
-                    <td>\r
-                        {{ activity.user.get_profile_link }} {{ activity.type_as_string }} {% trans "on" %} <a href="{{ activity.question.get_absolute_url }}">{{ activity.question.title }}</a><br />\r
-                        <sub>{{ activity.active_at|date }}, {{ activity.active_at|time }}</sub>\r
-                    </td>\r
-                </tr>\r
+                    {% activity_item activity request.user %}\r
                 {% endfor %}\r
                 </table>\r
             </td>\r
                 {% endfor %}\r
                 </table>\r
             </td>\r