Improved year look.
This commit is contained in:
parent
72b907c639
commit
a6f8800a3f
2 changed files with 14 additions and 12 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
<div id="mainContent">
|
||||||
<h2>Conservancy News Index - {{ year }}</h2>
|
<h2>Conservancy News Index - {{ year }}</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -14,5 +15,5 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
{% extends "base_news.html" %}
|
{% extends "base_news.html" %}
|
||||||
|
{% block category %}News{% endblock %}
|
||||||
{% block subtitle %}News - {% endblock %}
|
{% block subtitle %}News - {% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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">
|
<div id="mainContent">
|
||||||
|
|
||||||
<h1><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> Conservancy News</h1>
|
<h1><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> Conservancy News</h1>
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,11 +33,7 @@
|
||||||
{% if has_previous %}<a href="?page={{ previous }}">« Previous page (newer)</a>{% endif %}
|
{% if has_previous %}<a href="?page={{ previous }}">« 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 %}
|
{% comment %}{% for pagenum in page_navigation %}{% ifequal pagenum page %}[{{ pagenum }}]{% else %}<a href="?page={{ pagenum }}">{{ pagenum }}</a>{% endifequal %} {% endfor %}{% endcomment %}
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
<div class="clear"></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 %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue