From 654453c1c2fdceae72723a9a40e2c5e8faa51e25 2010-10-11 19:53:18 From: Bradley M. Kuhn Date: 2010-10-11 19:53:18 Subject: [PATCH] Allow for two news items at once on the frontpage. --- diff --git a/www/conservancy/static/conservancy.css b/www/conservancy/static/conservancy.css index 552230756e196884ec9329cc3f1681e83dbbb763..20bad0414f71bf576f77c0782b6acb2d8bf6a57d 100644 --- a/www/conservancy/static/conservancy.css +++ b/www/conservancy/static/conservancy.css @@ -167,6 +167,7 @@ h3 { margin-top: .6em; margin-bottom: .4em; } .column h2 { font-size: 1.25em; } .column h3 { font-size: 1.1em; } +.column hr { width: 50%; align: center; } .column h2 a { text-decoration: none; color: #000000; } .column h2 a:hover { text-decoration: underline; } diff --git a/www/conservancy/templates/frontpage.html b/www/conservancy/templates/frontpage.html index afcf043ef725b12b7b69468b859b1e1e8bd2083f..a19b141a3164fd8266b6f8455ab915d74a9e54e4 100644 --- a/www/conservancy/templates/frontpage.html +++ b/www/conservancy/templates/frontpage.html @@ -52,6 +52,13 @@

{{ press_releases.0.headline|safe }}

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

Read More...

{% endif %} +{% 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 %} +{% endif %} {% endif %}

Conservancy News