Fix tag highlighting

master
Nick Sergeant 2012-03-17 12:52:35 -04:00
parent d1591a0a4e
commit a3c1046014
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<ul>
{% for t in tags %}
<li>
<a {% if tag == t.name %}class="active"{% endif %} href="/public/tag/{{ t.slug }}/">{{ t.name }} ({{ t.count }})</a>
<a {% if tag.name == t.name %}class="active"{% endif %} href="/public/tag/{{ t.slug }}/">{{ t.name }} ({{ t.count }})</a>
</li>
{% endfor %}
</ul>

View File

@ -3,7 +3,7 @@
<ul>
{% for t in tags %}
<li>
<a {% if tag == t.name %}class="active"{% endif %} href="/{{ user.username }}/tag/{{ t.slug }}/">{{ t.name }} ({{ t.count }})</a>
<a {% if tag.name == t.name %}class="active"{% endif %} href="/{{ user.username }}/tag/{{ t.slug }}/">{{ t.name }} ({{ t.count }})</a>
</li>
{% endfor %}
</ul>