From 0b9ab6970cbfac0b72de379752d8422e4d89f083 Mon Sep 17 00:00:00 2001
From: Ben Sturmfels Displaying casts
-tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}{{ tag.label }}{% ifequal forloop.revcounter 2 %} or {% endifequal %}{% endfor %}
+tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}{{ tag.label }}{% if forloop.revcounter == 2 %} or {% endif %}{% endfor %}
Displaying posts
-{% if authors %}by {% for author in authors %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}{{ author.formal_name }}{% ifequal forloop.revcounter 2 %} and {% endifequal %}{% endfor %}{% endif %}
-{% if tags %}tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}{{ tag.label }}{% ifequal forloop.revcounter 2 %} or {% endifequal %}{% endfor %}{% endif %}
+{% if authors %}by {% for author in authors %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}{{ author.formal_name }}{% if forloop.revcounter == 2 %} and {% endif %}{% endfor %}{% endif %}
+{% if tags %}tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}{{ tag.label }}{% if forloop.revcounter == 2 %} or {% endif %}{% endfor %}{% endif %}
{% for pagenum in blog_entries.paginator.page_range %}{% ifequal pagenum blog_entries.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endifequal %} {% endfor %}
{% endif %} +{% if blog_entries.paginator.num_pages > 1 %}{% for pagenum in blog_entries.paginator.page_range %}{% if pagenum == blog_entries.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endif %} {% endfor %}
{% endif %} {% endblock %} diff --git a/conservancy/templates/feeds/omnibus_description.html b/conservancy/templates/feeds/omnibus_description.html index d612f7fe..e678fc0e 100644 --- a/conservancy/templates/feeds/omnibus_description.html +++ b/conservancy/templates/feeds/omnibus_description.html @@ -1,10 +1,10 @@ -{% ifequal obj.omnibus_type "news" %} +{% if obj.omnibus_type == "news" %}A news item from Software Freedom Conservancy.
-{% endifequal %} -{% ifequal obj.omnibus_type "event" %} +{% endif %} +{% if obj.omnibus_type == "event" %}An upcoming event related to the Software Freedom Conservancy.
-{% endifequal %} -{% ifequal obj.omnibus_type "blog" %} +{% endif %} +{% if obj.omnibus_type == "blog" %}A blog post from Software Freedom Conservancy.
-{% endifequal %} +{% endif %} {% include obj.omnibus_feed_description_template %} diff --git a/conservancy/templates/news/pressrelease_list.html b/conservancy/templates/news/pressrelease_list.html index 05611f70..66a0fdff 100644 --- a/conservancy/templates/news/pressrelease_list.html +++ b/conservancy/templates/news/pressrelease_list.html @@ -12,7 +12,7 @@(Page {{ news.number }} of {{ news.paginator.num_pages }})
{% endifnotequal %} +{% if news.number > 1 %}(Page {{ news.number }} of {{ news.paginator.num_pages }})
{% endif %} {% for pressr in news %} {% if forloop.first %} @@ -26,7 +26,7 @@ {% if news.has_next %}Next page (older) »{% endif %} {% if news.has_previous %}« Previous page (newer){% endif %} -{% if news.paginator.num_pages > 1 %}{% for pagenum in news.paginator.page_range %}{% ifequal pagenum news.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endifequal %} {% endfor %}
{% endif %} +{% if news.paginator.num_pages > 1 %}{% for pagenum in news.paginator.page_range %}{% if pagenum == news.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endif %} {% endfor %}
{% endif %}