Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0296121f
Commit
0296121f
authored
Jul 25, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove recreated mailer controller for admin
parent
61c85332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
47 deletions
+0
-47
app/controllers/admin/mailer_controller.rb
app/controllers/admin/mailer_controller.rb
+0
-47
No files found.
app/controllers/admin/mailer_controller.rb
deleted
100644 → 0
View file @
61c85332
class
Admin::MailerController
<
ApplicationController
layout
"admin"
before_filter
:authenticate_user!
before_filter
:authenticate_admin!
def
preview
end
def
preview_note
@note
=
Note
.
first
@user
=
@note
.
author
@project
=
@note
.
project
case
params
[
:type
]
when
"Commit"
then
@commit
=
@project
.
commit
render
:file
=>
'notify/note_commit_email'
,
:layout
=>
'notify'
when
"Issue"
then
@issue
=
Issue
.
first
render
:file
=>
'notify/note_issue_email'
,
:layout
=>
'notify'
when
"Wiki"
then
render
:file
=>
'notify/note_wiki_email'
,
:layout
=>
'notify'
else
render
:file
=>
'notify/note_wall_email'
,
:layout
=>
'notify'
end
rescue
render
:text
=>
"Preview not available"
end
def
preview_user_new
@user
=
User
.
first
@password
=
"DHasJKDHAS!"
render
:file
=>
'notify/new_user_email'
,
:layout
=>
'notify'
rescue
render
:text
=>
"Preview not available"
end
def
preview_issue_new
@issue
=
Issue
.
first
@user
=
@issue
.
assignee
@project
=
@issue
.
project
render
:file
=>
'notify/new_issue_email'
,
:layout
=>
'notify'
rescue
render
:text
=>
"Preview not available"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment