Reunite UTF-8 hack comment with sys.setdefaultencoding call it labels.
[cookbook.git] / cookbook / template / recipes.html
1 {% extends "base.html" %}
2
3 {% block page_title %}
4     Index {% if selected_tags %}({{ ', '.join(selected_tags) }}){% endif %}
5 {% endblock %}
6
7 {% block content %}
8     <form action="" method="get" style="float:right;">
9       <select name="tag" size="5" multiple="multiple">
10         {% for tag in cookbook.tags() %}
11         <option value="{{ tag }}">{{ tag }}</option>
12         {% endfor %}
13       </select><br/>
14       <input type="submit" value="Show only selected tags"/>
15     </form>
16     <ul id="recipe-list">
17       {% for recipe in recipes %}
18       <li><a href="recipe?name={{ recipe.clean_name(ascii=True) }}">
19               {{ recipe.name }}</li>
20       {% endfor %}
21     </ul>
22
23     <p><a href="edit">add new receipe</a></p>
24 {% endblock %}