From 149b51ddc634aeca9e766dfefd3363b97763d77b Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 3 Mar 2014 23:04:30 +0000 Subject: [PATCH] put published date on template publishing area --- services/web/app/views/templates.jade | 1 + .../public/coffee/project-members/ProjectMembersManager.coffee | 2 ++ 2 files changed, 3 insertions(+) diff --git a/services/web/app/views/templates.jade b/services/web/app/views/templates.jade index cffe1697d5..18c0712731 100644 --- a/services/web/app/views/templates.jade +++ b/services/web/app/views/templates.jade @@ -297,6 +297,7 @@ #publishedAsTemplateArea(style="display:none;") a#templateLink(href='{{canonicalUrl}}') View Template + p published at {{publishedDate}} .btn.btn-warning#unPublishProjectAsTemplate unpublish project as template .btn.btn-success#republishProjectAsTemplate re publish project as template diff --git a/services/web/public/coffee/project-members/ProjectMembersManager.coffee b/services/web/public/coffee/project-members/ProjectMembersManager.coffee index bad459f67e..fab84ee99f 100644 --- a/services/web/public/coffee/project-members/ProjectMembersManager.coffee +++ b/services/web/public/coffee/project-members/ProjectMembersManager.coffee @@ -186,6 +186,7 @@ define [ description: @model.get("description") canonicalUrl: @model.get("template.canonicalUrl") isPublished: @model.get("template.isPublished") + publishedDate: @model.get("template.publishedDate") $(@el).html $(Mustache.to_html(@template, viewModel)) @publishedArea = $('#publishedAsTemplateArea') @@ -201,6 +202,7 @@ define [ @model.set("template.isPublished", details.exists) if details.exists @model.set("template.canonicalUrl", details.canonicalUrl) + @model.set("template.publishedDate", details.publishedDate) @publishedArea.show() @unpublishedArea.hide() else