Send emails to moderators when orgas are manipuleted

rails5
Paulo Henrique de Lima Santana 6 years ago
parent 14251ffcef
commit 9b2039f5f8
  1. 10
      app/views/moderationorga_mailer/accept.text.haml
  2. 7
      app/views/moderationorga_mailer/create.text.haml
  3. 10
      app/views/moderationorga_mailer/destroy.text.haml
  4. 19
      app/views/moderationorga_mailer/update.text.haml

@ -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'

@ -0,0 +1,7 @@
= t '.body', subject: @orga.name
= surround '<'.html_safe, '>'.html_safe do
= moderations_url
\
= render file: '/orgas/show'
\
= t '.signature'

@ -0,0 +1,10 @@
= t '.body', author: @current_user
\
= @reason
\
= t '.reclamation'
\
= t '.reminder'
= render file: '/orgas/show'
\
= t '.signature'

@ -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…
Cancel
Save