From 39298f14d366b351708e7f5ef30d1b6575155792 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 31 Mar 2023 20:41:48 +0200 Subject: Reduce to ID and Markdown The upstream URL can be encoded easily by the user in the Markdown-based description. The title can be parsed by the first found top-level heading in the Markdown text. Thus these two columns are no longer used. To avoid an additional migration they will be kept in the database. --- data/templates/add.html | 29 ----------------------------- data/templates/recipe.html | 4 +--- data/templates/recipe_edit.html | 2 -- 3 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 data/templates/add.html (limited to 'data') diff --git a/data/templates/add.html b/data/templates/add.html deleted file mode 100644 index 0282ef0..0000000 --- a/data/templates/add.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - {{ template "head.html" }} - - - -
- -

Add a recipe

-
- -
-
-
-
- -
- - {{ template "footer.html" }} - -
- - - - diff --git a/data/templates/recipe.html b/data/templates/recipe.html index 00b6906..9f49fbb 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -6,13 +6,11 @@ -
{{if ne .UpstreamUrl ""}} +
- {{end}}

{{.Title}}

diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html index 05a932c..04804b4 100644 --- a/data/templates/recipe_edit.html +++ b/data/templates/recipe_edit.html @@ -15,8 +15,6 @@

Recipe ID: {{.Id}}

-
-
{{.DescriptionMarkdown}}
-- cgit v1.2.3-70-g09d2