Send emails to moderators when orgas are manipuleted
This commit is contained in:
parent
14251ffcef
commit
9b2039f5f8
10
app/views/moderationorga_mailer/accept.text.haml
Normal file
10
app/views/moderationorga_mailer/accept.text.haml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
= t '.body', author: @current_user
|
||||||
|
\
|
||||||
|
= t '.reminder'
|
||||||
|
= render file: '/orgas/show'
|
||||||
|
\
|
||||||
|
= t '.access'
|
||||||
|
= surround '<'.html_safe, '>'.html_safe do
|
||||||
|
= orga_url @orga
|
||||||
|
\
|
||||||
|
= t '.signature'
|
7
app/views/moderationorga_mailer/create.text.haml
Normal file
7
app/views/moderationorga_mailer/create.text.haml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
= t '.body', subject: @orga.name
|
||||||
|
= surround '<'.html_safe, '>'.html_safe do
|
||||||
|
= moderations_url
|
||||||
|
\
|
||||||
|
= render file: '/orgas/show'
|
||||||
|
\
|
||||||
|
= t '.signature'
|
10
app/views/moderationorga_mailer/destroy.text.haml
Normal file
10
app/views/moderationorga_mailer/destroy.text.haml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
= t '.body', author: @current_user
|
||||||
|
\
|
||||||
|
= @reason
|
||||||
|
\
|
||||||
|
= t '.reclamation'
|
||||||
|
\
|
||||||
|
= t '.reminder'
|
||||||
|
= render file: '/orgas/show'
|
||||||
|
\
|
||||||
|
= t '.signature'
|
19
app/views/moderationorga_mailer/update.text.haml
Normal file
19
app/views/moderationorga_mailer/update.text.haml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
= t '.body', subject: @orga.name, author: @current_user || t('.submitter')
|
||||||
|
|
||||||
|
:ruby
|
||||||
|
new = render file: '/orgas/show'
|
||||||
|
|
||||||
|
former = @orga
|
||||||
|
@orga = @orga.paper_trail.previous_version || @orga
|
||||||
|
|
||||||
|
prev = render file: '/orgas/show'
|
||||||
|
@orga = former
|
||||||
|
|
||||||
|
require 'differ/format/patch'
|
||||||
|
Differ.format = Differ::Format::Patch
|
||||||
|
= Differ.diff new, prev
|
||||||
|
\
|
||||||
|
= surround '<'.html_safe, '>'.html_safe do
|
||||||
|
= edit_orga_url @orga
|
||||||
|
\
|
||||||
|
= t '.signature'
|
Loading…
Reference in New Issue
Block a user