Changeset - 6c75aa824d75
[Not reviewed]
0 1 0
Martin Michlmayr (tbm) - 10 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
...
 
@@ -86,30 +86,27 @@
 
{% endif %}
 
{% endif %}
 
<p><span class="continued"><a href="/news/">Conservancy News Archive&hellip;</a></span></p>
 
{% if blog.0.is_recent %}
 
<div class="shaded">
 
<h2><a href="/feeds/blog/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/blog/">Conservancy Blog</a></h2>
 
<h3><a href="{{ blog.0.get_absolute_url }}">{{ blog.0.headline|safe }}</a></h3>
 
<p class="date">Posted by {{ blog.0.author.formal_name }}
 
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 }}
 
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>
 
</div>
 
</div>
 
{% endblock %}
0 comments (0 inline, 0 general)