mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -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'});
|
|
}
|
|
});
|