Files @ 5c72071b67e3
Branch filter:

Location: website/www/conservancy/templates/news/pressrelease_list.html

Bradley M. Kuhn
rt:261 — Gilden requires proprietary Javascript just to show sizes

The only thing of note actually available on the Gilden page that we
previously linked to are these two images (they have a kid's size
image, but we don't need that). So, link instead directly to the
images rather than the page itself. This is admittedly more fragile
as those image links seem to have some sort of checksum in them, but
it's worth it to avoid the proprietary Javascript.

Thanks very much to the Supporter who pointed this out waaay back on
Wed, 25 Apr 2018 14:59:37 -0400 in rt:261 in our internal ticketing
system! You know who you are. ☺
{% extends "base_news.html" %}
{% block subtitle %}News - {% endblock %}

{% block outercontent %}
    <div id="container">
         <div id="sidebar" class="{% block submenuselection %}other{% endblock %}">
         <h2>News Index by Year</h2>
         <ul>
         {% for year in date_list reversed %}<li class="{{ year|date:"Y" }}"><a href="{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %}
         </ul>
         </div>
         <div id="mainContent">
         <h1><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> Conservancy News</h1>


{% ifnotequal news.number 1 %}<p>(Page {{ news.number }} of {{ news.paginator.num_pages }})</p>{% endifnotequal %}

{% for pressr in news %}
  {% if pressr.is_recent %}
    {% include "news/pressrelease_partial.html" with pressr=pressr show="summary" only %}
  {% else %}
    {% include "news/pressrelease_partial.html" with pressr=pressr show="dateline" only %}
  {% endif %}
{% endfor %}

<p>
{% if news.has_next %}<a class="next_page_button" href="?page={{ news.next_page_number }}">Next page (older) &raquo;</a>{% endif %}
{% if news.has_previous %}<a href="?page={{ news.previous_page_number }}">&laquo; Previous page (newer)</a>{% endif %}
</p>
{% if news.paginator.num_pages > 1 %}<p class="pagination_list"> {% for pagenum in news.paginator.page_range %}{% ifequal pagenum news.number %}[{{ pagenum }}]{% else %}<a href="?page={{ pagenum }}">{{ pagenum }}</a>{% endifequal %} {% endfor %}</p>{% endif %}
         </div>
 </div>
<div class="clear"></div>

{% endblock %}