diff options
author | xengineering <me@xengineering.eu> | 2023-03-31 19:47:55 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-03-31 19:47:55 +0200 |
commit | f1308a436040f3a72e058e10ec2693cfb599da30 (patch) | |
tree | a3fa6c854b5bdec68077c0401b541dceceb51c00 /data | |
parent | 58b03b95f544a6ab6bde5e508fbadcb0a2e804dd (diff) | |
download | ceres-f1308a436040f3a72e058e10ec2693cfb599da30.tar ceres-f1308a436040f3a72e058e10ec2693cfb599da30.tar.zst ceres-f1308a436040f3a72e058e10ec2693cfb599da30.zip |
Remove image functionality
Recipe images are currently complicated to implement and have little
use. Probably they will not be covered in the next release.
Diffstat (limited to 'data')
-rw-r--r-- | data/storage/.gitkeep | 0 | ||||
-rw-r--r-- | data/templates/recipe.html | 2 | ||||
-rw-r--r-- | data/templates/recipe_edit.html | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/data/storage/.gitkeep b/data/storage/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/data/storage/.gitkeep +++ /dev/null diff --git a/data/templates/recipe.html b/data/templates/recipe.html index 98012fe..00b6906 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -17,13 +17,11 @@ </header> <main> - <img src="./recipe/image?id={{.Id}}" alt="Recipe image"> <h2>Recipe description</h2> <a href="./recipe/edit?id={{.Id}}"><button>edit</button></a> {{.RenderedDescriptionMarkdown}} {{ template "footer.html" }} - </main> </body> </html> diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html index bd67266..05a932c 100644 --- a/data/templates/recipe_edit.html +++ b/data/templates/recipe_edit.html @@ -17,8 +17,6 @@ <p>Recipe ID: {{.Id}}</p> <input placeholder="Title" type="text" name="title" value="{{.Title}}"><br> <input placeholder="Link (optional)" type="text" name="url" value="{{.UpstreamUrl}}"><br> - <label for="image">New image (optional):</label> - <input id="image" type="file"><br> <pre contenteditable="true"><code>{{.DescriptionMarkdown}}</code></pre> <button>save</button> <!-- TODO add functionality --> <a href="/recipe?id={{.Id}}"><button>cancel</button></a> |