From fc1cc70870f971b3ca63ccd125a4db5fd76bdd8a Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 19 Feb 2020 00:08:32 +0100 Subject: [PATCH] basic pdf embedding --- .idea/jsLibraryMappings.xml | 2 +- cookbook/templates/recipe_view.html | 110 +++++++++++++++++++++------- 2 files changed, 86 insertions(+), 26 deletions(-) diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml index b6df455a..1cc58317 100644 --- a/.idea/jsLibraryMappings.xml +++ b/.idea/jsLibraryMappings.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index 96fc1f57..7dd0c8bf 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -20,8 +20,10 @@
- + {% if ingredients %} + + {% endif %}
@@ -130,30 +132,88 @@ {% if recipe.storage %} - {% trans 'View external recipe' %} - - {% endif %} +
+ {% if recipe.internal %} + {% trans 'View external recipe' %} + {% else %} - {% if not recipe.internal %} -
-
-
-
-
-
{% trans 'External recipe' %}
-

- {% blocktrans %} - This is an external recipe, which means you can only view it by opening the link above. - You can convert this recipe to a fancy recipe by pressing the convert button. The original file - will still be accessible. - {% endblocktrans %}. -
-
- {% trans 'Convert now!' %} -

-
+ + +
+
+
+
+
+
{% trans 'External recipe' %}
+

+ {% blocktrans %} + This is an external recipe, which means you can only view it by opening the link above. + You can convert this recipe to a fancy recipe by pressing the convert button. The + original + file + will still be accessible. + {% endblocktrans %}. +
+
+ {% trans 'Convert now!' %} +

+
+
+ + + + + {% endif %}
{% endif %}