discourse/app/assets/javascripts/admin/routes/admin_email_index_route.js
2014-02-15 00:50:08 +01:00

18 lines
368 B
JavaScript

/**
Handles email routes
@class AdminEmailRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminEmailIndexRoute = Discourse.Route.extend({
model: function() {
return Discourse.EmailSettings.find();
},
renderTemplate: function() {
this.render('admin/templates/email_index', { into: 'adminEmail' });
}
});