]> git.openstreetmap.org Git - osqa.git/commitdiff
Should fix the error reported in http://meta.osqa.net/questions/4753/bulk-management...
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 12 Sep 2010 20:37:55 +0000 (20:37 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 12 Sep 2010 20:37:55 +0000 (20:37 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@591 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/osqaadmin/nodeman.html

index 500e05bf2f883d5186d598263653f7cc3162722b..816558d9cbfa64c141fd9d5e9cea801aa26906a0 100644 (file)
@@ -1,6 +1,6 @@
 {% extends basetemplate %}
 
-{% load i18n user_tags extra_tags %}
+{% load i18n user_tags extra_tags extra_filters %}
 
 {% block adminjs %}
     <script type="text/javascript">
                     <a id="all-node-type-link" href="#all" title="{% trans "click to clear the type filter" %}">{% trans "all" %}</a>
                 </li>
                 {% for type, name in node_types %}
-                <li{% if type in type_filter %} class="selected" title="{% trans "click to remove from the filter" %}"{% else %} title="{% trans "click to add to the filter" %}"{% endif %}>
+                <li{% if type|contained_in:type_filter %} class="selected" title="{% trans "click to remove from the filter" %}"{% else %} title="{% trans "click to add to the filter" %}"{% endif %}>
                     <a class="node-type-link" href="#{{ type }}">{{ name }}</a>
                 </li>
                 {% endfor %}
                     <a id="all-state-link" href="#any" title="{% trans "click to clear the state filter" %}">{% trans "any" %}</a>
                 </li>
                 {% for state_type in state_types %}
-                    <li{% if state_type in state_filter %} class="selected" title="{% trans "click to remove from the filter" %}"{% else %} title="{% trans "click to add to the filter" %}"{% endif %}>
+                    <li{% if state_type|contained_in:state_filter %} class="selected" title="{% trans "click to remove from the filter" %}"{% else %} title="{% trans "click to add to the filter" %}"{% endif %}>
                         <a class="state-type-link" href="#{{ state_type }}">{{ state_type }}</a>
                     </li>
                 {% endfor %}
                         <td>{% diff_date node.last_activity_at %}</td>
                         <td>
                             {% for t in node.tags.all %}
-                                {% if t in tags %}<b>{{ t.name }}</b>
+                                {% if t|contained_in:tags %}<b>{{ t.name }}</b>
                                 {% else %}{{ t.name }}{% endif %}
                             {% endfor %}
                         </td>