mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
20 lines
448 B
JavaScript
20 lines
448 B
JavaScript
/**
|
|
Handles email routes
|
|
|
|
@class AdminEmailRoute
|
|
@extends Discourse.Route
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.AdminEmailIndexRoute = Discourse.Route.extend({
|
|
|
|
setupController: function(controller) {
|
|
Discourse.EmailSettings.find().then(function (model) {
|
|
controller.set('model', model);
|
|
});
|
|
},
|
|
|
|
renderTemplate: function() {
|
|
this.render('admin/templates/email_index', {into: 'adminEmail'});
|
|
}
|
|
});
|