summaryrefslogtreecommitdiff
path: root/server/lib/views/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-10-08 14:47:47 -0400
committerJules Laplace <jules@okfoc.us>2014-10-08 14:47:47 -0400
commit583d213f22be93a1363c24ac2cdf9f083833703f (patch)
tree2b084787c04b0c8932688c20259f4e4a7f03e7b5 /server/lib/views/index.js
parent6f4cd32fa13efe3b0e8b26183589f66889dd3738 (diff)
projectList item formatting
Diffstat (limited to 'server/lib/views/index.js')
-rw-r--r--server/lib/views/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/lib/views/index.js b/server/lib/views/index.js
index ca48159..3f3880f 100644
--- a/server/lib/views/index.js
+++ b/server/lib/views/index.js
@@ -139,6 +139,11 @@ views.profile = function (req, res) {
projects = projects.map(function(project){
project = project.toObject()
project.date = moment(project.updated_at).format("M/DD/YYYY")
+ if (project.colors.wall && project.colors.wall[0] == project.colors.wall[1] && project.colors.wall[1] == project.colors.wall[2] && project.colors.wall[2] > 238) {
+ project.color = [238,238,238]
+ } else {
+ project.color = project.colors.wall
+ }
return project
})
done(err, user, projects)