Improved snippets category view.
This commit is contained in:
parent
7487946a78
commit
7f82ce553d
1 changed files with 3 additions and 0 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue