Changeset - 6c75aa824d75
[Not reviewed]
0 1 0
Martin Michlmayr (tbm) - 7 years ago 2014-07-15 22:30:25
tbm@cyrius.com
Use same logic for blogs as for news

Put the code for blog.1 within the if block of blog.0, as this is the
logic used for news. As a result, the <hr> divider for blogs is now
in the "shaded" element (as it already is with news).
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
www/conservancy/templates/frontpage.html
Show inline comments
...
 
@@ -95,11 +95,7 @@ on {{ blog.0.pub_date|date:"F j, Y" }}</p>
 
{{ blog.0.summary|safe }}
 
<p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More
 
      from {{ blog.0.author.casual_name }} on this&hellip;</a></span></p>
 
</div>
 
{% endif %}
 

	
 
{% if blog.1.is_recent %}
 
<div class="shaded">
 
<hr/>
 
<h3><a href="{{ blog.1.get_absolute_url }}">{{ blog.1.headline|safe }}</a></h3>
 
<p class="date">Posted by {{ blog.1.author.formal_name }}
...
 
@@ -107,6 +103,7 @@ on {{ blog.1.pub_date|date:"F j, Y" }}</p>
 
{{ blog.1.summary|safe }}
 
<p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More
 
      from {{ blog.1.author.casual_name }} on this&hellip;</a></span></p>
 
{% endif %}
 
</div>
 
{% endif %}
 
<p><span class="continued"><a href="/blog/">Conservancy Blog Archive&hellip;</a></span></p>
0 comments (0 inline, 0 general)