Changeset - a6f8800a3fce
[Not reviewed]
0 2 0
Bradley Kuhn (bkuhn) - 12 years ago 2010-10-04 13:47:51
bkuhn@ebb.org
Improved year look.
2 files changed with 14 insertions and 12 deletions:
0 comments (0 inline, 0 general)
www/conservancy/templates/news/pressrelease_archive_year.html
Show inline comments
 
{% extends "base_news.html" %}
 

	
 
{% block title %}Conservancy News Index - {{ year }}{% endblock %}
 

	
 
{% block content %}
 

	
 
         <div id="mainContent">
 
<h2>Conservancy News Index - {{ year }}</h2>
 

	
 
<ul>
 

	
 
{% for object in object_list %}
 
    <li><a href="{{ object.get_absolute_url }}"><b>{{ object.headline|safe }}</b></a><br/>
 
    <i>{{ object.pub_date|date:"F j, Y" }}</i></li>
 
{% endfor %}
 

	
 
</ul>
 

	
 
         </div>
 
{% endblock %}
www/conservancy/templates/news/pressrelease_list.html
Show inline comments
 
{% extends "base_news.html" %}
 

	
 
{% block category %}News{% endblock %}
 
{% block subtitle %}News - {% endblock %}
 

	
 
{% block content %}
 

	
 
<div id="mainContent">
 

	
 
<h1><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> Conservancy News</h1>
 
{% block outercontent %}
 
    <div id="container">
 
         <div id="sidebar" class="{% block submenuselection %}other{% endblock %}">
 
         <h2>News Index by Year</h3>
 
         <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 page 1 %}<p>(page {{ page }} of {{ pages }})</p>{% endifnotequal %}
 

	
 
{% for object in object_list %}
 
    <div class="shaded">
...
 
@@ -25,14 +30,10 @@
 

	
 
<p>
 
{% if has_next %}<a class="next_page_button" href="?page={{ next }}">Next page (older) &raquo;</a>{% endif %}
 
{% if has_previous %}<a href="?page={{ previous }}">&laquo; Previous page (newer)</a>{% endif %}
 
{% comment %}{% for pagenum in page_navigation %}{% ifequal pagenum page %}[{{ pagenum }}]{% else %}<a href="?page={{ pagenum }}">{{ pagenum }}</a>{% endifequal %} {% endfor %}{% endcomment %}
 
</p>
 
 </div>
 
<div class="clear"></div>
 

	
 
<h3>News index by date</h3>
 
<ul>
 
{% for year in date_list %}<li><a href="{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %}
 
</ul>
 
</div>
 
{% endblock %}
0 comments (0 inline, 0 general)