Move forum ember app into a subdir, preparing for admin app to exist alongside

This commit is contained in:
Toby Zerner
2015-03-28 19:10:52 +10:30
parent 62d26e8e0a
commit 950d2f0eb9
210 changed files with 4 additions and 8 deletions

View File

@ -0,0 +1,22 @@
import Ember from 'ember';
import ComposerBody from 'flarum/components/composer/composer-body';
var precompileTemplate = Ember.Handlebars.compile;
/**
The composer body for posting a reply. Adds a title control to indicate
which discussion is being replied to.
*/
export default ComposerBody.extend({
submitLabel: 'Post Reply',
populateControls: function(items) {
var title = Ember.Component.extend({
tagName: 'h3',
layout: precompileTemplate('Replying to <em>{{component.discussion.title}}</em>'),
component: this
});
items.pushObjectWithTag(title, 'title');
}
});