Changeset - cb8f62370dc7
[Not reviewed]
0 1 0
Martin Michlmayr (tbm) - 7 years ago 2014-05-01 23:27:04
tbm@cyrius.com
Fix HTML </div> error on frontpage

One too many <div> elements were closed when no blogs were displayed.

Note that the logic between news and blogs is different: news opens
one "shaded" div and puts all news in it. In the case of blogs, one
"shaded" div is created for each blog entry displayed.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
www/conservancy/templates/frontpage.html
Show inline comments
...
 
@@ -95,18 +95,20 @@ 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 %}
 
<hr/>
 
<div class="shaded">
 
<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>
0 comments (0 inline, 0 general)