Keep news items a bit longer than previously.

This commit is contained in:
Bradley M. Kuhn 2012-03-08 10:58:09 -05:00
parent 9f799d5d6f
commit d718f82272

View file

@ -51,7 +51,7 @@
<div class="column column-large"> <div class="column column-large">
{% if press_releases.0 %} {% if press_releases.0 %}
{% if press_releases.0.pub_date|date_within_past_days:30 %} {% if press_releases.0.pub_date|date_within_past_days:60 %}
<div class="shaded"> <div class="shaded">
<h2><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/news/">Recent News</a></h2> <h2><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/news/">Recent News</a></h2>
<p class="date">{{ press_releases.0.pub_date|date:"F j, Y" }}</p> <p class="date">{{ press_releases.0.pub_date|date:"F j, Y" }}</p>
@ -59,7 +59,7 @@
{{ press_releases.0.summary|safe }} {{ press_releases.0.summary|safe }}
{% if press_releases.0.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %} {% if press_releases.0.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %}
{% if press_releases.1 %} {% if press_releases.1 %}
{% if press_releases.1.pub_date|date_within_past_days:15 %} {% if press_releases.1.pub_date|date_within_past_days:30 %}
<hr/> <hr/>
<p class="date">{{ press_releases.1.pub_date|date:"F j, Y" }}</p> <p class="date">{{ press_releases.1.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ press_releases.1.get_absolute_url }}">{{ press_releases.1.headline|safe }}</a></h3> <h3><a href="{{ press_releases.1.get_absolute_url }}">{{ press_releases.1.headline|safe }}</a></h3>
@ -68,7 +68,7 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if press_releases.2 %} {% if press_releases.2 %}
{% if press_releases.2.pub_date|date_within_past_days:10 %} {% if press_releases.2.pub_date|date_within_past_days:25 %}
<hr/> <hr/>
<p class="date">{{ press_releases.2.pub_date|date:"F j, Y" }}</p> <p class="date">{{ press_releases.2.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ press_releases.2.get_absolute_url }}">{{ press_releases.2.headline|safe }}</a></h3> <h3><a href="{{ press_releases.2.get_absolute_url }}">{{ press_releases.2.headline|safe }}</a></h3>