2013-04-04 12:59:44 -04:00
|
|
|
/**
|
|
|
|
Allows users to customize site content
|
|
|
|
|
|
|
|
@class AdminSiteContentsRoute
|
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
|
|
|
Discourse.AdminSiteContentsRoute = Discourse.Route.extend({
|
|
|
|
|
|
|
|
model: function() {
|
|
|
|
return Discourse.SiteContentType.findAll();
|
|
|
|
},
|
|
|
|
|
2013-12-30 13:29:52 -05:00
|
|
|
renderTemplate: function() {
|
2013-04-04 12:59:44 -04:00
|
|
|
this.render('admin/templates/site_contents', {into: 'admin/templates/admin'});
|
|
|
|
this.render('admin/templates/site_contents_empty', {into: 'admin/templates/site_contents'});
|
2013-07-17 00:15:09 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController: function(controller, model) {
|
|
|
|
controller.set('model', model);
|
2013-04-04 12:59:44 -04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|