Files
@ b36800e0784f
Branch filter:
Location: website/www/conservancy/templates/news/pressrelease_list.html - annotation
b36800e0784f
1.5 KiB
text/html
Apply max widths and margins to all pages.
Due to the varying types of layouts used and the short time-frame the best
option seems to set a max-width etc. around the "outercontent" block. For now
this means we can't do "full bleed" body content, but that's not currently used
anyway.
Due to the varying types of layouts used and the short time-frame the best
option seems to set a max-width etc. around the "outercontent" block. For now
this means we can't do "full bleed" body content, but that's not currently used
anyway.
c858e825c0f2 c858e825c0f2 c858e825c0f2 a6f8800a3fce a6f8800a3fce a6f8800a3fce 7ccc53805a03 a6f8800a3fce a6f8800a3fce a6f8800a3fce a6f8800a3fce a6f8800a3fce a6f8800a3fce c858e825c0f2 d2af6a0cb511 b7e31128a0bb c858e825c0f2 d5f461d87963 d5f461d87963 d5f461d87963 d5f461d87963 d5f461d87963 d5f461d87963 c858e825c0f2 c858e825c0f2 c858e825c0f2 b7e31128a0bb b7e31128a0bb 20e258e000db 9c090f2c27f4 c0bf25753275 a6f8800a3fce c858e825c0f2 c858e825c0f2 c858e825c0f2 | {% 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) »</a>{% endif %}
{% if news.has_previous %}<a href="?page={{ news.previous_page_number }}">« 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 %}
|