Commits

Anonymous committed 0a21245

Update to use smart if tags in Django 1.2

Comments (0)

Files changed (2)

templates/iphone/feed_list.html

 <a class="button panel_button" style="display:none;" href="javascript:void(0);" id="mark_read">Mark Read</a>
 <ul id="categories" title="Categories" selected="true">
     {% for category in category_list %}
-        {% ifnotequal category.feed_set.unread.count 0 %}
+        {% if category.feed_set.unread.count != 0 %}
         <li><a id="cat_link{{ category.id }}" href="#cat{{ category.id }}">{{ category.name }}</a></li>
-        {% endifnotequal %}
+        {% endif %}
     {% endfor %}
 </ul>
 {% for category in category_list %}
-    {% ifnotequal category.feed_set.unread.count 0 %}
+    {% if category.feed_set.unread.count != 0 %}
     <ul id="cat{{ category.id }}" title="{{ category.name }}">
             {% for feed in category.feed_set.unread %}
             <li><a id="feed_link{{ feed.id }}" href="#feed{{ feed.id }}">{{ feed }} <span class="count">{{ feed.count_unread }}</span></a></li>
             {% endfor %}
     </ul>
-    {% endifnotequal %}
+    {% endif %}
 {% endfor %}
 {% for category in category_list %}
-    {% ifnotequal category.feed_set.unread.count 0 %}
+    {% if category.feed_set.unread.count != 0 %}
         {% for feed in category.feed_set.unread %}
         <ul id="feed{{ feed.id }}" title="{{ feed }}">
             {% for post in feed.unread_posts %}
             {% endfor %}
         </ul>
         {% endfor %}
-    {% endifnotequal %}
+    {% endif %}
 {% endfor %}
 <div id="post" class="panel" title="Post">
     <div id="loading"></div>

templates/web/feed_list.html

 					<li><a href="/reader/{{ feed.id }}/all/" title="Posts">{{ feed }} - ({{ feed.count_total }})</a></li>
 				{% endfor %}
 			{% else %}
-				{% ifnotequal category.feed_set.unread.count 0 %}
+				{% if category.feed_set.unread.count != 0 %}
 					<h2>{{ category.name }}</h2>
 					{% for feed in category.feed_set.unread %}
 					<li><a href="/reader/{{ feed.id }}/unread/" title="Posts" id="f{{ feed.id }}">{{ feed }} - ({{ feed.count_unread }})</a></li>
 					{% endfor %}
-				{% endifnotequal %}
+				{% end %}
 			{% endif %}
 		{% endfor %}
 	</ul>