From 8170d5bc0544fbc02155b8b57751cd1dec33dd69 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Apr 2021 10:57:50 +0000 Subject: initial public commit --- views/recipe/show.ejs | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 views/recipe/show.ejs (limited to 'views/recipe/show.ejs') diff --git a/views/recipe/show.ejs b/views/recipe/show.ejs new file mode 100644 index 0000000..9fcc771 --- /dev/null +++ b/views/recipe/show.ejs @@ -0,0 +1,55 @@ +<%- include('../partials/header') %> +<%- include('../partials/nav') %> + +
+ <%- include('../partials/categories') %> +
+

<%= recipe.title %>, + by + <%= recAuthor.bio.name %> +

+
+
+ recipe + <% if(usr) { %> + <% if(account.favorites.includes(recipe._id)) { %> +
+ +
+ <% } else { %> +
+ +
+ <% } %> + <% } %> +
+
+
Ingredients:
+
    + <% ingridients.map(i => { %> +
  • <%= i %>
  • + <% }) %> +
+
+
+

+ + <%= recipe.category %> + +

+
+

Instructions (<%= recipe.steps.length %> steps)

+ <% recipe.steps.map(s => { %> +
+
Step <%= s.number %>:
+

<%= s.step %>

+
+ <% }) %> +
+
+ <%- include('../partials/popular') %> +
+ +<%- include('../partials/magicCats') %> +<%- include('../partials/magicPops') %> +<%- include('../partials/footer') %> -- cgit v1.2.3