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-06-05 11:01:20 -04:00
|
|
|
renderTemplate: function(controller, model) {
|
|
|
|
controller.set('model', model);
|
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'});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|