mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
21 lines
509 B
JavaScript
21 lines
509 B
JavaScript
|
/**
|
||
|
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();
|
||
|
},
|
||
|
|
||
|
renderTemplate: function() {
|
||
|
this.render('admin/templates/site_contents', {into: 'admin/templates/admin'});
|
||
|
this.render('admin/templates/site_contents_empty', {into: 'admin/templates/site_contents'});
|
||
|
}
|
||
|
});
|
||
|
|