website/conservancy/templates/news/pressrelease_list.html

46 lines
2 KiB
HTML
Raw Permalink Normal View History

{% extends "base_news.html" %}
2024-02-26 23:19:38 +00:00
{% load static %}
{% block subtitle %}News - {% endblock %}
2010-10-04 13:47:51 +00:00
{% block outercontent %}
<div id="container" class="mw8 center ph2 ph3">
2010-10-04 13:47:51 +00:00
<div id="mainContent">
<div class="breadcrumbs">
2021-10-18 13:56:24 +00:00
<p><a href="/">Home</a> / <a href="/news/">News</a></p>
</div>
2024-02-26 23:19:38 +00:00
<h1><a href="/feeds/news/" class="feedlink"><img src="{% static 'img/feed-icon-14x14.png' %}" alt="[RSS]"/></a> Conservancy News</h1>
{% if news.number > 1 %}<p>(Page {{ news.number }} of {{ news.paginator.num_pages }})</p>{% endif %}
{% for pressr in news %}
2023-02-08 11:51:51 +00:00
{% if forloop.first %}
{% 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 %}
2015-03-04 21:04:44 +00:00
</p>
{% if news.paginator.num_pages > 1 %}<p class="pagination_list"> {% for pagenum in news.paginator.page_range %}{% if pagenum == news.number %}[{{ pagenum }}]{% else %}<a href="?page={{ pagenum }}">{{ pagenum }}</a>{% endif %} {% endfor %}</p>{% endif %}
2014-04-17 23:07:13 +00:00
</div>
<div id="sidebar" class="{% block submenuselection %}{% 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>
<h2>Resources for Journalists</h2>
<ul>
<li class="News"><a href="/news/">News</a></li>
<li class="PressKit"><a href="/press/">Press Kit</a></li>
<li class="Glossary"><a href="/copyleft-compliance/glossary.html">Glossary</a></li>
</ul>
</div>
</div>
{% endblock %}