mirror of
https://github.com/flarum/framework.git
synced 2025-01-09 20:44:05 +08:00
10 lines
281 B
JavaScript
10 lines
281 B
JavaScript
|
import Ember from 'ember';
|
||
|
|
||
|
export default Ember.Handlebars.makeBoundHelper(function(time) {
|
||
|
var m = moment(time);
|
||
|
var datetime = m.format();
|
||
|
var full = m.format('LLLL');
|
||
|
|
||
|
return new Ember.Handlebars.SafeString('<time pubdate datetime="'+datetime+'">'+full+'</time>');
|
||
|
});
|