elif in django template

Solutions on MaxInterview for elif in django template by the best coders in the world

showing results for - "elif in django template"
Ricardo
04 Feb 2016
1 {% for entry in entries %}
2        {% if entry.category == 'General Member' %}
3        <a href="{% url 'member:person-list' %}"><li>{{ entry.category }}</li></a>
4    {% elif entry.category == 'Executive Committee Member' %}
5        <a href="{% url 'member:execomember-list' %}"><li>{{ entry.category}}</li></a>
6    {% else %}
7    <a href="{% url 'member:person-list' %}"><li>{{ entry.category}}</li></a>
8        {% endif %}
9    {% empty %}
10        <li>No recent entries</li>
11  {% endfor %}