PageRenderTime 41ms CodeModel.GetById 38ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-3.0
  1. <h1>Object List</h1>
  2. <div style="background: #eee;">
  3. <h2>Filters</h2>
  4. <dl>
  5. {% for filter in filters %}
  6. <dt>{{ filter.title }}</dt>
  7. {% for choice in filter.choices %}
  8. {% if choice.active %}
  9. <dd>{{ choice.title }}</dd>
  10. {% else %}
  11. {% if choice.items_count %}
  12. <dd><a href="?{{ choice.urlencode }}">{{ choice.title }}</a> ({{ choice.items_count }})
  13. </dd>
  14. {% endif %}
  15. {% endif %}
  16. {% endfor %}
  17. {% endfor %}
  18. </dl>
  19. {% if filters.active %}
  20. <p><a href="?">Show all</a></p>
  21. {% endif %}
  22. </div>
  23. <h2>Results</h2>
  24. <ul>
  25. {% for object in filters.object_list %}
  26. <li><a href="{{ object.get_url }}">{{ object }}</a></li>
  27. {% endfor %}
  28. </ul>