From 3ed7e1a258489ed4ecbe0d58fdbc4eee29c5269d Mon Sep 17 00:00:00 2001 From: antarus66 Date: Fri, 14 Aug 2015 17:58:48 +0300 Subject: [PATCH] related-time: Fixed templates --- public/js/models/related-timestamps-model.js | 4 ++-- public/js/views/templates/answer/single-answer.tpl | 2 +- public/js/views/templates/comment/single-comment.tpl | 2 +- public/js/views/templates/question/question-layout.tpl | 2 +- public/js/views/templates/question/row.tpl | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/js/models/related-timestamps-model.js b/public/js/models/related-timestamps-model.js index 24120b4..39eda47 100644 --- a/public/js/models/related-timestamps-model.js +++ b/public/js/models/related-timestamps-model.js @@ -3,10 +3,10 @@ define(['app', 'moment'], function(App, moment) { App.RelatedTimestampsModel = Backbone.Model.extend({ attachLocalDates: function () { var updatedRelative = moment.utc(this.get('updated_at')).toDate(); - this.set('updated_local', moment(updatedRelative).fromNow()); + this.set('updated_relative', moment(updatedRelative).fromNow()); var createdRelative = moment.utc(this.get('created_at')).toDate(); - this.set('created_local', moment(createdRelative).fromNow()); + this.set('created_relative', moment(createdRelative).fromNow()); } }); }); diff --git a/public/js/views/templates/answer/single-answer.tpl b/public/js/views/templates/answer/single-answer.tpl index eda2b7a..c3cb9f5 100755 --- a/public/js/views/templates/answer/single-answer.tpl +++ b/public/js/views/templates/answer/single-answer.tpl @@ -12,7 +12,7 @@
- +
<%= description %>
diff --git a/public/js/views/templates/comment/single-comment.tpl b/public/js/views/templates/comment/single-comment.tpl index 9fd4a1d..e7b5c2e 100644 --- a/public/js/views/templates/comment/single-comment.tpl +++ b/public/js/views/templates/comment/single-comment.tpl @@ -10,7 +10,7 @@
- +

<%- text %>

diff --git a/public/js/views/templates/question/question-layout.tpl b/public/js/views/templates/question/question-layout.tpl index 63d7952..58faff2 100755 --- a/public/js/views/templates/question/question-layout.tpl +++ b/public/js/views/templates/question/question-layout.tpl @@ -14,7 +14,7 @@
- +

<%- title %>

<%- folder.title %>
diff --git a/public/js/views/templates/question/row.tpl b/public/js/views/templates/question/row.tpl index d889eb6..6aa0996 100755 --- a/public/js/views/templates/question/row.tpl +++ b/public/js/views/templates/question/row.tpl @@ -10,7 +10,7 @@
-
Asked at <%- created_local %>
+
Asked <%- created_relative %>