From a8f97f0c4fe2bea23be66965c250b257ace04971 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 24 May 2013 22:49:33 +0200 Subject: fixed settlement in projects on dashboard. improves on #9 and closes #29 --- views/dashboard.ejs | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'views') diff --git a/views/dashboard.ejs b/views/dashboard.ejs index 21aef0d..c759add 100644 --- a/views/dashboard.ejs +++ b/views/dashboard.ejs @@ -32,7 +32,8 @@
- Oppgjør: -200 kr + <% s = (pro.project[projects.project._id].user - (pro.project[projects.project._id].total / pro.project[projects.project._id].users)).toFixed(2); %> + Oppgjør: <%- s >= 0 ? '' + s : '' + s %> <%= projects.project.currency %>
@@ -55,25 +56,7 @@
-
-
-

Status total

-
-
-
- - - - - - -
300040001000
-
-
-

Her vises hvor mye andre skylder deg totalt, hvor mye du skylder andre totalt, og differansen mellom disse to tallene

-
-
-
+

Status total

-- cgit v1.2.3