mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:12:45 +08:00
ES6: More controllers
This commit is contained in:
parent
efcf99c21d
commit
804a489c7b
|
@ -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/
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
@namespace Discourse
|
||||
@module Discourse
|
||||
**/
|
||||
Discourse.GroupIndexController = Ember.ArrayController.extend({
|
||||
export default Ember.ArrayController.extend({
|
||||
needs: ['group'],
|
||||
loading: false,
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
Discourse.GroupPostController = Em.ObjectController.extend({
|
||||
export default Em.ObjectController.extend({
|
||||
|
||||
byName: function() {
|
||||
var result = "",
|
|
@ -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(){
|
|
@ -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?
|
|
@ -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');
|
||||
}
|
||||
|
||||
});
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user