From 2956a34aa6fca672424d64e72b0bc5496fba73dc Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Thu, 26 Dec 2019 12:17:51 +0100 Subject: [PATCH] print view --- cookbook/templates/recipe_view.html | 31 ++++++++++++++++------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index 3ea26678c..fad33bb56 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -14,9 +14,9 @@ {% block content %}
-

{{ recipe.name }}

+

{{ recipe.name }}

-
+
@@ -29,7 +29,7 @@ {% if recipe.internal %} {% trans 'by' %} {{ recipe.created_by.username }}
-
+
{% endif %} {% if recipe.all_tags %} @@ -63,7 +63,7 @@
-
+
@@ -117,8 +117,9 @@ {% endif %} {% if recipe.storage %} - {% trans 'View external recipe' %} + {% trans 'View external recipe' %} + {% endif %} {% if not recipe.internal %} @@ -147,23 +148,25 @@
{% trans 'Comments' %}
+
-
- {% csrf_token %} -
+ + {% csrf_token %} +
-
- +
+ +
-
- + +
{% for c in comments %}
{{ c.updated_at }} {% trans 'by' %} {{ c.created_by.username }}
+ href="{% url 'edit_comment' c.pk %}" class="d-print-none">
{{ c.text }}