Changeset - 654453c1c2fd
[Not reviewed]
0 2 0
Bradley Kuhn (bkuhn) - 12 years ago 2010-10-11 19:53:18
bkuhn@ebb.org
Allow for two news items at once on the frontpage.
2 files changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/conservancy.css
Show inline comments
...
 
@@ -169,2 +169,3 @@ h3 { margin-top: .6em; margin-bottom: .4em; }
 
.column h3 { font-size: 1.1em; }
 
.column hr { width: 50%; align: center; }
 

	
www/conservancy/templates/frontpage.html
Show inline comments
...
 
@@ -54,2 +54,9 @@
 
{% 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.pub_date|date_within_past_days:15 %}
 
<hr/>
 
<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>
 
{{ press_releases.1.summary|safe }}
 
{% if press_releases.1.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %}
 
{% endif %}
 
</div>
0 comments (0 inline, 0 general)