Not displaying tag cloud icon if there are no tags

This commit is contained in:
Gergely Polonkai 2014-06-14 12:16:26 +02:00
parent 8820dd89ba
commit 52462db6f8

View File

@ -42,7 +42,9 @@
</div> </div>
<div id="content-padding"></div> <div id="content-padding"></div>
<div id="menu"> <div id="menu">
{% if tagcloud|length > 0 %}
<div id="tagcloud-button"><img alt="" src="{% static "images/tagcloud.png" %}" /></div> <div id="tagcloud-button"><img alt="" src="{% static "images/tagcloud.png" %}" /></div>
{% endif %}
<ul> <ul>
<li {% if view_name|slice:"-7:" == ".resume" %} class="active"{% endif %}><a href="{% url 'basics:resume' %}">Resume</a></li> <li {% if view_name|slice:"-7:" == ".resume" %} class="active"{% endif %}><a href="{% url 'basics:resume' %}">Resume</a></li>
<li {% if view_name|slice:":5" == "blog." %} class="active"{% endif %}><a href="{% url 'blog:index' %}">Blog</a></li> <li {% if view_name|slice:":5" == "blog." %} class="active"{% endif %}><a href="{% url 'blog:index' %}">Blog</a></li>