diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-23 13:42:38 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-23 13:42:38 +0200 |
commit | aa401781a6dbc0c2eecf9f78d77835fa2babf50a (patch) | |
tree | 2b2d90bd166bf965ae41a4f1ede1fcdae951d6b3 /views/project.ejs | |
parent | added loadProject, to load all project participants (diff) | |
download | Divid-aa401781a6dbc0c2eecf9f78d77835fa2babf50a.tar.gz |
now loads participants and date
Diffstat (limited to 'views/project.ejs')
-rw-r--r-- | views/project.ejs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/views/project.ejs b/views/project.ejs index 07a0c06..a3e9802 100644 --- a/views/project.ejs +++ b/views/project.ejs @@ -14,7 +14,7 @@ prosjekt </div> <div class="span10"> - <h1><%= title %></h1> + <h1><%= project.name %></h1> </div> </div> <div class="row-fluid"> @@ -22,7 +22,10 @@ opprettet </div> <div class="span10"> - <p>2013-04-18</p> + <p> + <% var d = new Date(project.created); %> + <%= d.getFullYear() + '-' + ('0' + (d.getMonth()+1)).slice(-2) + '-' + ('0' + d.getDate()).slice(-2) + ' ' + d.toLocaleTimeString().slice(0, 5) %> + </p> </div> </div> <div class="row-fluid"> @@ -30,11 +33,11 @@ deltakere </div> <div class="span10"> - Truls Hyttebakken <span class="muted">(eier)</span><br /> - Stian Rabaldertusten <span class="muted">(admin)</span><br /> - Robert Joramo<br /> - Dennis Eriksen<br /> - Helene Apelort<br /> + <% access.forEach(function(participants) { %> + <% if (participants.user.status === 1) { %><span class="muted"><%= participants.user.email %> (ikke registrert)</span><br> + <% } else { %><%= participants.user.name %><% if (participants.permissions >= 6) { %> <span class="muted">(<%= participants.permissions === 9 ? 'eier' : 'admin' %>)</span><% } %><br> + <% } %> + <% }); %> <small><a href="/project/<%= req.params.short %>/participants">Legg til flere deltakere</a></small> </div> </div> |