From fcbd030b36426843acfb13ac567e80014910b628 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 24 May 2013 10:12:25 +0200 Subject: fixed some nicklists and other stuffs --- views/dashboard.ejs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'views/dashboard.ejs') diff --git a/views/dashboard.ejs b/views/dashboard.ejs index 1c1c4df..7fd41fa 100644 --- a/views/dashboard.ejs +++ b/views/dashboard.ejs @@ -18,10 +18,18 @@
-

<%= projects.project.user.username %>/<%= projects.project.name %>

+

<%= projects.project.name %>

- Meg, Robert, Turid-Laila, Kurt, Stian, Aleksander, Frank, Olav, Heidi, Anette, Kristine + + <% var ppl = 'Meg'; + participants.forEach(function(participant) { + if (String(participant.project) === String(projects.project._id) && String(participant.user._id) !== String(user._id)) { + ppl += ', ' + participant.user.name; + } + }); %> + <%- ppl %> +
Oppgjør: -200 kr -- cgit v1.2.3