summaryrefslogtreecommitdiff
path: root/server/lib/views/staff/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/views/staff/helpers.js')
-rw-r--r--server/lib/views/staff/helpers.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/lib/views/staff/helpers.js b/server/lib/views/staff/helpers.js
index 57383f4..ff4065a 100644
--- a/server/lib/views/staff/helpers.js
+++ b/server/lib/views/staff/helpers.js
@@ -27,6 +27,13 @@ module.exports = {
layout.user = {}
return layout
},
+
+ blueprint: function(blueprint){
+ blueprint = blueprint.toObject()
+ blueprint.date = moment( blueprint.updated_at || blueprint.created_at ).format("M/DD/YYYY hh:mm a")
+ blueprint.user = {}
+ return blueprint
+ },
media: function(media){
media = media.toObject()