Service for editing/creating recipe
[recipes.git] / backend / templates / view_recipe.html
1 {% extends "base_with_list.html" %}
2
3 {% block content %}
4
5 <h2 class="recipe-title" >{{ current_recipe.title }}</h2>
6
7
8 {% if user.is_some() && current_recipe.user_id == user.as_ref().unwrap().id %}
9 <a class="edit-recipe" href="/recipe/edit/{{ current_recipe.id }}" >Edit</a>
10 {% endif %}
11
12 {% if !current_recipe.description.is_empty() %}
13 <div class="recipe-description" >
14 {{ current_recipe.description.clone()|markdown }}
15 </div>
16 {% endif %}
17
18 {% endblock %}