mirror of
https://github.com/flarum/framework.git
synced 2025-01-10 04:53:53 +08:00
13 lines
436 B
JavaScript
13 lines
436 B
JavaScript
import Ember from 'ember';
|
|
|
|
var precompileTemplate = Ember.Handlebars.compile;
|
|
|
|
/**
|
|
Component for the username/avatar in a post header.
|
|
*/
|
|
export default Ember.Component.extend({
|
|
tagName: 'h3',
|
|
classNames: ['post-user'],
|
|
layout: precompileTemplate('{{#if post.user}}{{#link-to "user" post.user}}{{user-avatar post.user}} {{user-name post.user}}{{/link-to}}{{else}}{{user-avatar post.user}} {{user-name post.user}}{{/if}}')
|
|
});
|