Created
January 23, 2014 21:42
-
-
Save DeskWOW/8587383 to your computer and use it in GitHub Desktop.
List links to other articles in the same topic and bold the current article.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.active { font-weight: bold; } | |
.inactive { opacity: 0.5; } | |
</style> | |
<ul> | |
{% for cur in topic.articles %} | |
<li> | |
<a class="{% if article.id == cur.id %}active{% else %}inactive{% endif %}" href='{{ cur.public_url }}'>{{ cur.subject_plain | clip:40 }}</a> | |
</li> | |
{% endfor %} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment