Changeset - 654453c1c2fd
[Not reviewed]
0 2 0
Bradley Kuhn (bkuhn) - 11 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
...
 
@@ -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; }
www/conservancy/templates/frontpage.html
Show inline comments
...
 
@@ -52,6 +52,13 @@
 
<h3><a href="{{ press_releases.0.get_absolute_url }}">{{ press_releases.0.headline|safe }}</a></h3>
 
{{ 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.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>
 
{% endif %}
 
<p><span class="continued"><a href="/news/">Conservancy News
0 comments (0 inline, 0 general)