aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/views/dashboard.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/dashboard.ejs')
-rw-r--r--views/dashboard.ejs12
1 files changed, 10 insertions, 2 deletions
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 @@
<section class="project">
<div class="row-fluid">
<div class="span11">
- <h1><a href="/project/<%= projects.project.shortURL %>"><%= projects.project.user.username %>/<strong><%= projects.project.name %></strong></a></h1>
+ <h1><a href="/project/<%= projects.project.shortURL %>"><strong><%= projects.project.name %></strong></a></h1>
<div class="row-fluid">
<div class="span8">
- <small>Meg, Robert, Turid-Laila, Kurt, Stian, Aleksander, Frank, Olav, Heidi, Anette, Kristine</small>
+ <small>
+ <% 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 %>
+ </small>
</div>
<div class="span4">
<small>Oppgjør: <span class="text-error">-200 kr</span></small>