2010-05-03 11:20:52 +02:00
|
|
|
{% extends "snippets/layout.html" %}
|
|
|
|
|
{% block title %}{{ category.name }}{% endblock %}
|
|
|
|
|
{% block body %}
|
|
|
|
|
<h2>{{ category.name }}</h2>
|
|
|
|
|
{% if category.count > 3 %}
|
|
|
|
|
<p>
|
|
|
|
|
Here you can find all {{ category.count }} snippets of this
|
|
|
|
|
category. You can also
|
|
|
|
|
{% else %}
|
|
|
|
|
This category is pretty empty so far. Why not
|
|
|
|
|
{% endif %}
|
|
|
|
|
<a href="{{ url_for('snippets.new',
|
|
|
|
|
category=category.slug) }}">add a new one</a>.
|
2010-05-03 12:48:43 +02:00
|
|
|
{% if snippets %}
|
2010-05-03 12:49:37 +02:00
|
|
|
<h3>Snippets in this Category:</h3>
|
2010-05-03 11:20:52 +02:00
|
|
|
<ul>
|
|
|
|
|
{% for snippet in snippets %}
|
|
|
|
|
<li><a href="{{ snippet.url }}">{{ snippet.title }}</a>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
2010-05-03 12:48:43 +02:00
|
|
|
{% endif %}
|
2010-05-03 11:20:52 +02:00
|
|
|
{% endblock %}
|