diff --git a/app/assets/javascripts/discourse/routes/application_routes.js b/app/assets/javascripts/discourse/routes/application_routes.js index 1fb86acd7..6eeca7e36 100644 --- a/app/assets/javascripts/discourse/routes/application_routes.js +++ b/app/assets/javascripts/discourse/routes/application_routes.js @@ -64,7 +64,9 @@ Discourse.Route.buildRoutes(function() { this.route(homepage, { path: '/' }); }); - this.resource('group', { path: '/groups/:groupname' }); + this.resource('group', { path: '/groups/:groupname' }, function() { + this.route('members'); + }); // User routes this.resource('user', { path: '/users/:username' }, function() { diff --git a/app/assets/javascripts/discourse/routes/group_index_route.js b/app/assets/javascripts/discourse/routes/group_index_route.js new file mode 100644 index 000000000..fb119b9bd --- /dev/null +++ b/app/assets/javascripts/discourse/routes/group_index_route.js @@ -0,0 +1,6 @@ +Discourse.GroupIndexRoute = Discourse.Route.extend({ + + model: function() { + console.log('group index'); + } +}); diff --git a/app/assets/javascripts/discourse/routes/group_route.js b/app/assets/javascripts/discourse/routes/group_route.js index 18315a938..ffaa40923 100644 --- a/app/assets/javascripts/discourse/routes/group_route.js +++ b/app/assets/javascripts/discourse/routes/group_route.js @@ -1,7 +1,7 @@ Discourse.GroupRoute = Discourse.Route.extend({ model: function() { - console.log('load it'); - } + return Discourse.AdminGroup.create(); + }, }); diff --git a/app/assets/javascripts/discourse/templates/group.js.handlebars b/app/assets/javascripts/discourse/templates/group.js.handlebars new file mode 100644 index 000000000..ab50f0e5a --- /dev/null +++ b/app/assets/javascripts/discourse/templates/group.js.handlebars @@ -0,0 +1,10 @@ +