Commit 0296121f08cd960f5a96686b3bedd75f5651765a
1 parent
61c85332
Exists in
master
and in
4 other branches
Remove recreated mailer controller for admin
Showing
1 changed file
with
0 additions
and
47 deletions
Show diff stats
app/controllers/admin/mailer_controller.rb
... | ... | @@ -1,47 +0,0 @@ |
1 | -class Admin::MailerController < ApplicationController | |
2 | - layout "admin" | |
3 | - before_filter :authenticate_user! | |
4 | - before_filter :authenticate_admin! | |
5 | - | |
6 | - def preview | |
7 | - | |
8 | - end | |
9 | - | |
10 | - def preview_note | |
11 | - @note = Note.first | |
12 | - @user = @note.author | |
13 | - @project = @note.project | |
14 | - case params[:type] | |
15 | - when "Commit" then | |
16 | - @commit = @project.commit | |
17 | - render :file => 'notify/note_commit_email', :layout => 'notify' | |
18 | - when "Issue" then | |
19 | - @issue = Issue.first | |
20 | - render :file => 'notify/note_issue_email', :layout => 'notify' | |
21 | - when "Wiki" then | |
22 | - render :file => 'notify/note_wiki_email', :layout => 'notify' | |
23 | - else | |
24 | - render :file => 'notify/note_wall_email', :layout => 'notify' | |
25 | - end | |
26 | - rescue | |
27 | - render :text => "Preview not available" | |
28 | - end | |
29 | - | |
30 | - def preview_user_new | |
31 | - @user = User.first | |
32 | - @password = "DHasJKDHAS!" | |
33 | - | |
34 | - render :file => 'notify/new_user_email', :layout => 'notify' | |
35 | - rescue | |
36 | - render :text => "Preview not available" | |
37 | - end | |
38 | - | |
39 | - def preview_issue_new | |
40 | - @issue = Issue.first | |
41 | - @user = @issue.assignee | |
42 | - @project = @issue.project | |
43 | - render :file => 'notify/new_issue_email', :layout => 'notify' | |
44 | - rescue | |
45 | - render :text => "Preview not available" | |
46 | - end | |
47 | -end |