19 lines
No EOL
510 B
HTML
19 lines
No EOL
510 B
HTML
{% extends "base_with_list.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="content" id="recipe-view">
|
|
<h2 class="recipe-title" >{{ recipe.title }}</h2>
|
|
|
|
{% if user.is_some() && recipe.user_id == user.as_ref().unwrap().id %}
|
|
<a class="edit-recipe" href="/recipe/edit/{{ recipe.id }}" >Edit</a>
|
|
{% endif %}
|
|
|
|
{% if !recipe.description.is_empty() %}
|
|
<div class="recipe-description" >
|
|
{{ recipe.description.clone()|markdown }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endblock %} |