weblinks / bbitems conditionals

This commit is contained in:
Sanj 2012-02-16 16:37:53 +05:30
parent 3a3c633e4f
commit 5e6fa5abd2

View File

@ -32,7 +32,7 @@
</div><!-- HEADER EMAILER CLOSING -->
<div id="contentEmailer">
{% if weblinks %}
<div class="contentBoxes">
<h1>WEB LINKS</h1>
{% for weblink in weblinks %}
@ -40,7 +40,8 @@
{% endfor %}
<p class="contentBoxesMore"><a href="#weblinks">More &#187;</a></p>
</div><!-- CONTENT BOXES CLOSING -->
{% endif %}
{% if bbitems %}
<div class="contentBoxes">
<h1>BULLETIN BOARD</h1>
{% for bbitem in bbitems %}
@ -48,7 +49,7 @@
{% endfor %}
<p class="contentBoxesMore"><a href="#bbitems">More &#187;</a></p>
</div><!-- CONTENT BOXES CLOSING -->
{% endif %}
</div><!-- CONTENT BOXES CLOSING -->
<div class="clear"></div>
@ -73,7 +74,7 @@
<div class="authorBio">{{ article.author_bio|markdown }}</div>
{% endfor %}
</div><!-- ARTICLE EMAILER CLOSING -->
{% if weblinks %}
<div class="contentLinks">
<a name="weblinks"></a><h1>WEB LINKS</h1>
{% for weblink in weblinks %}
@ -81,7 +82,8 @@
{{ weblink.text|markdown }}
{% endfor %}
</div><!-- WEB LINKS CLOSING -->
{% endif %}
{% if bbitems %}
<div class="contentLinks">
<a name="bbitems"></a><h1>BULLETIN BOARD</h1>
{% for bbitem in bbitems %}
@ -89,7 +91,7 @@
{{ bbitem.text|markdown }}
{% endfor %}
</div><!-- WEB LINKS CLOSING -->
{% endif %}
</div><!-- CONTENT EMAILER CLOSING -->