From 4cec8e5d2e520218725a506b5f6532e3e0aa0e2b Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 24 May 2013 16:11:09 +0200 Subject: added delete post option --- views/project.ejs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'views/project.ejs') diff --git a/views/project.ejs b/views/project.ejs index caa6fd2..b4db87b 100644 --- a/views/project.ejs +++ b/views/project.ejs @@ -36,12 +36,12 @@ <% access.forEach(function(participants) { %> <%- participants.user.name %><% if (participants.permissions >= 6) { %> (<%= participants.permissions === 9 ? 'eier' : 'admin' %>)<% } %>
<% }); %> - Legg til flere deltakere + Legg til flere deltakere
@@ -142,11 +142,14 @@ -
-
- [edit] + <% if (String(post.user._id) === String(req.user._id) || req.user.permissions >= 6) { %> +
+ [edit]
-
+
+ [delete] +
+ <% } %>
-- cgit v1.2.3