PageRenderTime 112ms CodeModel.GetById 47ms app.highlight 18ms RepoModel.GetById 33ms app.codeStats 0ms

/example_app/templates/story_list.html

https://bitbucket.org/neithere/django-view-shortcuts/
HTML | 31 lines | 28 code | 3 blank | 0 comment | 0 complexity | 5fb4e3dfd5c8eb9392b633977863d0bc MD5 | raw file
 1<h1>Object List</h1>
 2
 3<div style="background: #eee;">
 4    <h2>Filters</h2>
 5    <dl>
 6    {% for filter in filters %}
 7        <dt>{{ filter.title }}</dt>
 8        {% for choice in filter.choices %}
 9            {% if choice.active %}
10                <dd>{{ choice.title }}</dd>
11            {% else %}
12                {% if choice.items_count %}
13                <dd><a href="?{{ choice.urlencode }}">{{ choice.title }}</a> ({{ choice.items_count }})
14                </dd>
15                {% endif %}
16            {% endif %}
17        {% endfor %}
18    {% endfor %}
19    </dl>
20    {% if filters.active %}
21        <p><a href="?">Show all</a></p>
22    {% endif %}
23</div>
24
25<h2>Results</h2>
26
27<ul>
28{% for object in filters.object_list %}
29    <li><a href="{{ object.get_url }}">{{ object }}</a></li>
30{% endfor %}
31</ul>