X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=backend%2Ftemplates%2Fview_recipe.html;h=aba5c69441d4f7b5fd97ee62ddf4998742cb7e02;hb=cc2e5b6893b582b4b5c4e7a93e914a189f6a959b;hp=e355c52e359b33997fe2fa24e40bc54fe1ec6b94;hpb=e2e54b8f43015738af860b005825dc809f5275ab;p=recipes.git diff --git a/backend/templates/view_recipe.html b/backend/templates/view_recipe.html index e355c52..aba5c69 100644 --- a/backend/templates/view_recipe.html +++ b/backend/templates/view_recipe.html @@ -2,6 +2,17 @@ {% block content %} -{{ current_recipe.title }} +

{{ current_recipe.title }}

+ + +{% if user.is_some() && current_recipe.user_id == user.as_ref().unwrap().id %} + Edit +{% endif %} + +{% if !current_recipe.description.is_empty() %} +
+ {{ current_recipe.description.clone()|markdown }} +
+{% endif %} {% endblock %} \ No newline at end of file