diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-10-08 14:47:47 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-10-08 14:47:47 -0400 |
| commit | 583d213f22be93a1363c24ac2cdf9f083833703f (patch) | |
| tree | 2b084787c04b0c8932688c20259f4e4a7f03e7b5 /server/lib/views | |
| parent | 6f4cd32fa13efe3b0e8b26183589f66889dd3738 (diff) | |
projectList item formatting
Diffstat (limited to 'server/lib/views')
| -rw-r--r-- | server/lib/views/index.js | 5 |
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) |
