summaryrefslogtreecommitdiff
path: root/views/account/saved.ejs
diff options
context:
space:
mode:
authorroot <root@vagrantz.xyz>2021-04-06 10:57:50 +0000
committerroot <root@vagrantz.xyz>2021-04-06 10:57:50 +0000
commit8170d5bc0544fbc02155b8b57751cd1dec33dd69 (patch)
treed5cffb086fe6d5585c1e00ea5d5d2d907e6d2cd6 /views/account/saved.ejs
initial public commitHEADmaster
Diffstat (limited to 'views/account/saved.ejs')
-rw-r--r--views/account/saved.ejs33
1 files changed, 33 insertions, 0 deletions
diff --git a/views/account/saved.ejs b/views/account/saved.ejs
new file mode 100644
index 0000000..2e4c864
--- /dev/null
+++ b/views/account/saved.ejs
@@ -0,0 +1,33 @@
+<%- include('../partials/header') %>
+<%- include('../partials/nav') %>
+
+<div class='content'>
+ <%- include('../partials/settings') %>
+ <div class='main'>
+ <div class='recList'>
+ <% recipes.map(s => { %>
+ <div class='recCard'>
+ <img src="/images/<%= s.author.username %>/<%= s.picture %>" alt="recipe">
+ <a href='/recipe/<%= s._id %>'><%= s.title %></a>
+ <% if(usr) { %>
+ <% if(usr._id.equals(s.author.id)) { %>
+ <div class='recControl'>
+ <form action="/recipe/<%= s._id %>/edit">
+ <button class='acRecBtns'><i class='fas fa-edit'></i></button>
+ </form>
+ <form action='/recipe/<%= s._id %>?_method=DELETE' method='POST'>
+ <button class='acRecBtns' type='submit'><i class='fas fa-trash'></i></button>
+ </form>
+ </div>
+ <% } %>
+ <% } %>
+ </div>
+ <% }) %>
+ </div>
+ </div>
+ <%- include('../partials/bio') %>
+</div>
+
+<%- include('../partials/magicSets') %>
+<%- include('../partials/magicBio') %>
+<%- include('../partials/footer') %>