/example_app/templates/story_list.html
HTML | 31 lines | 28 code | 3 blank | 0 comment | 0 complexity | 5fb4e3dfd5c8eb9392b633977863d0bc MD5 | raw file
Possible License(s): LGPL-3.0
- <h1>Object List</h1>
- <div style="background: #eee;">
- <h2>Filters</h2>
- <dl>
- {% for filter in filters %}
- <dt>{{ filter.title }}</dt>
- {% for choice in filter.choices %}
- {% if choice.active %}
- <dd>{{ choice.title }}</dd>
- {% else %}
- {% if choice.items_count %}
- <dd><a href="?{{ choice.urlencode }}">{{ choice.title }}</a> ({{ choice.items_count }})
- </dd>
- {% endif %}
- {% endif %}
- {% endfor %}
- {% endfor %}
- </dl>
- {% if filters.active %}
- <p><a href="?">Show all</a></p>
- {% endif %}
- </div>
- <h2>Results</h2>
- <ul>
- {% for object in filters.object_list %}
- <li><a href="{{ object.get_url }}">{{ object }}</a></li>
- {% endfor %}
- </ul>