Send emails to moderators when orgas are manipuleted

This commit is contained in:
Paulo Henrique de Lima Santana 2016-10-28 14:11:27 -02:00
parent 14251ffcef
commit 9b2039f5f8
4 changed files with 46 additions and 0 deletions

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

View File

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

View File

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

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