1 {% extends "base_with_header.html" %}
3 {% block main_container %}
6 {% for (id, title) in recipes %}
8 {% let item_html = "
<a href=\
"/recipe/view/{}\">{}
</a>"|format(id, title) %}
9 {% match current_recipe_id %}
10 {# Don't know how to avoid repetition: comparing (using '==' or .eq()) current_recipe_id.unwrap() and id doesn't work. Guards for match don't exist.
11 See: https://github.com/djc/askama/issues/752 #}
12 {% when Some (current_id) %}
13 {% if current_id == id %}
14 [{{ item_html|escape("none
") }}]
16 {{ item_html|escape("none
") }}
19 {{ item_html|escape("none
") }}
26 {% block content %}{% endblock %}