FIX: Dates in the history window shouldn't wrap in spans

This commit is contained in:
Robin Ward 2013-06-17 11:56:50 -04:00
parent 797b99db7c
commit c2d9d95237

View File

@ -66,8 +66,13 @@ Discourse.HistoryController = Discourse.ObjectController.extend(Discourse.ModalF
var historyController = this;
this.get('model').loadVersions().then(function(result) {
_.each(result,function(item) {
item.description = "v" + item.number + " - " + Discourse.Formatter.relativeAge(new Date(item.created_at), {format: 'medium', leaveAgo: true}) + " - " +
Em.String.i18n("changed_by", { author: item.display_username });
var age = Discourse.Formatter.relativeAge(new Date(item.created_at), {
format: 'medium',
leaveAgo: true,
wrapInSpan: false});
item.description = "v" + item.number + " - " + age + " - " + Em.String.i18n("changed_by", { author: item.display_username });
});
historyController.setProperties({