From aa401781a6dbc0c2eecf9f78d77835fa2babf50a Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Thu, 23 May 2013 13:42:38 +0200 Subject: now loads participants and date --- views/project.ejs | 17 ++++++++++------- 1 file 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
-

<%= title %>

+

<%= project.name %>

@@ -22,7 +22,10 @@ opprettet
-

2013-04-18

+

+ <% var d = new Date(project.created); %> + <%= d.getFullYear() + '-' + ('0' + (d.getMonth()+1)).slice(-2) + '-' + ('0' + d.getDate()).slice(-2) + ' ' + d.toLocaleTimeString().slice(0, 5) %> +

@@ -30,11 +33,11 @@ deltakere
- Truls Hyttebakken (eier)
- Stian Rabaldertusten (admin)
- Robert Joramo
- Dennis Eriksen
- Helene Apelort
+ <% access.forEach(function(participants) { %> + <% if (participants.user.status === 1) { %><%= participants.user.email %> (ikke registrert)
+ <% } else { %><%= participants.user.name %><% if (participants.permissions >= 6) { %> (<%= participants.permissions === 9 ? 'eier' : 'admin' %>)<% } %>
+ <% } %> + <% }); %> Legg til flere deltakere
-- cgit v1.2.3