]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/osqaadmin/moderation.html
Remove ADMIN_MEDIA_PREFIX since it has been deprecated in Django 1.4
[osqa.git] / forum / skins / default / templates / osqaadmin / moderation.html
index 688c897cf9198a500c3ecddb25d1945afc87004c..b17792cc70f4a0c29c9bb7a35f862fef7e383dc2 100644 (file)
@@ -1,6 +1,6 @@
 {% extends basetemplate %}
 
-{% load i18n humanize %}
+{% load i18n humanize admin_static %}
 
 {% block subtitle %}{% trans "Moderation" %}{% endblock %}
 {% block pagename %}{% trans "Moderation" %}{% endblock %}
@@ -9,6 +9,7 @@
 {% block admincontent %}
     <div class="module">
         <form action="" id="changelist" method="POST">
+            {% csrf_token %}
             <div class="actions">
                 {% trans "Verify:" %}
                 <input type="text" size="3" name="limit" id="filter-limit" value="5" />
@@ -55,9 +56,9 @@
                         <p><a href="{{ cheater.get_profile_url }}">{{ cheater.username }}</a></p>
                         <p><b>{% trans "Email" %}</b>
                         {% if cheater.email_isvalid %}
-                            <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-yes.gif" alt="{% trans "Validated" %}" />
+                            <img src="{% static 'img/admin/icon-yes.gif' %}" alt="{% trans "Validated" %}" />
                         {% else %}
-                            <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-no.gif" alt="{% trans "Not validated" %}" />
+                            <img src="{% static 'img/admin/icon-no.gif' %}" alt="{% trans "Not validated" %}" />
                         {% endif %}
                         <a href="mailto: {{ cheater.email }}">{{ cheater.email }}</a></p>
                         <p><b>{% trans "Reputation:" %}</b> {{ cheater.reputation|intcomma }}</p>
@@ -79,9 +80,9 @@
                                 <td><a href="{{ fake.get_profile_url }}">{{ fake.username }}</a></td>
                                 <td>
                                     {% if fake.email_isvalid %}
-                                        <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-yes.gif" alt="{% trans "Validated" %}" />
+                                        <img src="{% static 'img/admin/icon-yes.gif' %}" alt="{% trans "Validated" %}" />
                                     {% else %}
-                                        <img src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon-no.gif" alt="{% trans "Not validated" %}" />
+                                        <img src="{% static 'img/admin/icon-no.gif' %}" alt="{% trans "Not validated" %}" />
                                     {% endif %}
                                     <a href="mailto: {{ fake.email }}">{{ fake.email }}</a>
                                 </td>
@@ -98,4 +99,4 @@
         </table>
         {% endif %}
     </div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}