ES6: More controllers

This commit is contained in:
Robin Ward 2014-05-07 11:46:33 -04:00
parent efcf99c21d
commit 804a489c7b
7 changed files with 7 additions and 7 deletions

View File

@ -5,6 +5,7 @@ lib/javascripts/locale/
lib/javascripts/messageformat.js
lib/javascripts/moment.js
lib/javascripts/moment_locale/
lib/es6_module_transpiler/support/es6-module-transpiler.js
public/javascripts/
spec/phantom_js/smoke_test.js
vendor/

View File

@ -6,7 +6,7 @@
@namespace Discourse
@module Discourse
**/
Discourse.GroupIndexController = Ember.ArrayController.extend({
export default Ember.ArrayController.extend({
needs: ['group'],
loading: false,

View File

@ -1,4 +1,4 @@
Discourse.GroupPostController = Em.ObjectController.extend({
export default Em.ObjectController.extend({
byName: function() {
var result = "",

View File

@ -7,7 +7,7 @@
@uses Discourse.ModalFunctionality
@module Discourse
**/
Discourse.InvitePrivateController = Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
modalClass: 'invite',
onShow: function(){

View File

@ -7,7 +7,7 @@
@uses Discourse.ModalFunctionality
@module Discourse
**/
Discourse.InviteController = Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
/**
Can we submit the form?

View File

@ -7,11 +7,10 @@
@uses Discourse.ModalFunctionality
@module Discourse
**/
Discourse.KeyboardShortcutsHelpController = Discourse.Controller.extend(Discourse.ModalFunctionality, {
export default Discourse.Controller.extend(Discourse.ModalFunctionality, {
needs: ['modal'],
onShow: function() {
this.set('controllers.modal.modalClass', 'keyboard-shortcuts-modal');
}
});

View File

@ -1,5 +1,5 @@
<div class='user-stream'>
{{#each model itemController="groupPost"}}
{{#each model itemController="group/post"}}
<div class='item'>
<div class='clearfix info'>
{{#link-to 'user' user class="avatar-link"}}<div class='avatar-wrapper'>{{avatar user imageSize="large" extraClasses="actor" ignoreTitle="true"}}</div>{{/link-to}}