2013-06-03 16:12:24 -04:00
|
|
|
/**
|
|
|
|
Handles email routes
|
|
|
|
|
|
|
|
@class AdminEmailRoute
|
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
|
|
|
Discourse.AdminEmailIndexRoute = Discourse.Route.extend({
|
|
|
|
|
2014-02-14 18:50:08 -05:00
|
|
|
model: function() {
|
|
|
|
return Discourse.EmailSettings.find();
|
2013-06-03 16:12:24 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
renderTemplate: function() {
|
2014-02-14 18:50:08 -05:00
|
|
|
this.render('admin/templates/email_index', { into: 'adminEmail' });
|
2013-06-03 16:12:24 -04:00
|
|
|
}
|
|
|
|
});
|