From c88641d47c6b9467987591b70b2fb90774cb1aa1 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Mon, 11 Oct 2010 16:13:50 -0400 Subject: [PATCH] Put up to three news items on Conservancy front page. --- www/conservancy/templates/frontpage.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/www/conservancy/templates/frontpage.html b/www/conservancy/templates/frontpage.html index a19b141a..a3e80b54 100644 --- a/www/conservancy/templates/frontpage.html +++ b/www/conservancy/templates/frontpage.html @@ -45,6 +45,7 @@
+{% if press_releases.0 %} {% if press_releases.0.pub_date|date_within_past_days:30 %}

[RSS] Recent News

@@ -52,15 +53,27 @@

{{ press_releases.0.headline|safe }}

{{ press_releases.0.summary|safe }} {% if press_releases.0.body %}

Read More...

{% endif %} +{% if press_releases.1 %} {% if press_releases.1.pub_date|date_within_past_days:15 %}

{{ press_releases.1.pub_date|date:"F j, Y" }}

{{ press_releases.1.headline|safe }}

{{ press_releases.1.summary|safe }} -{% if press_releases.1.body %}

Read More...

{% endif %} +{% if press_releases.1.body %}

Read More...

{% endif %} +{% endif %} +{% endif %} +{% if press_releases.2 %} +{% if press_releases.2.pub_date|date_within_past_days:10 %} +
+

{{ press_releases.2.pub_date|date:"F j, Y" }}

+

{{ press_releases.2.headline|safe }}

+{{ press_releases.2.summary|safe }} +{% if press_releases.2.body %}

Read More...

{% endif %} +{% endif %} {% endif %}
{% endif %} +{% endif %}

Conservancy News Archive…

{% if blog.0.is_recent %}