Improved snippets category view.

This commit is contained in:
Armin Ronacher 2010-05-03 12:48:43 +02:00
parent 7487946a78
commit 7f82ce553d

View file

@ -11,9 +11,12 @@
{% endif %}
<a href="{{ url_for('snippets.new',
category=category.slug) }}">add a new one</a>.
{% if snippets %}
<h3>Snippets in this Category</h3>
<ul>
{% for snippet in snippets %}
<li><a href="{{ snippet.url }}">{{ snippet.title }}</a>
{% endfor %}
</ul>
{% endif %}
{% endblock %}