mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
FIX: Dates in the history window shouldn't wrap in spans
This commit is contained in:
parent
797b99db7c
commit
c2d9d95237
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user