From 173be97bf7bf0fe8c9b7c4585514490dd01b13db Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Thu, 23 May 2013 11:59:38 +0200 Subject: you now get a message if you have no active projects --- views/dashboard.ejs | 42 ++++-------------------------------------- 1 file changed, 4 insertions(+), 38 deletions(-) diff --git a/views/dashboard.ejs b/views/dashboard.ejs index 5136551..9678c9c 100644 --- a/views/dashboard.ejs +++ b/views/dashboard.ejs @@ -12,7 +12,9 @@

Prosjekter

- <% projects.forEach(function(projects) { %> + <% if (projects.length === 0) { %> +

Du har ingen aktive prosjekt. Du kan starte et prosjekt ved å klikke her.

+ <% } else { projects.forEach(function(projects) { %>
@@ -31,43 +33,7 @@
- <% }); %> -
-
-
-

kurt/Kollektivet

-
-
- Meg, Robert, Heidi, Anette, Kristine -
-
- Oppgjør: -2314 kr -
-
-
-
-

Før utgift

-
-
-
-
-
-
-

turidl/Kosekveldene

-
-
- Meg, Turid-Laila -
-
- Oppgjør: 551 kr -
-
-
-
-

+

-
-
-
+ <% }); } %> +
-- cgit v1.2.3