diff --git a/app/views/moderationorga_mailer/accept.text.haml b/app/views/moderationorga_mailer/accept.text.haml new file mode 100644 index 0000000000000000000000000000000000000000..95d41419010941cc7eda65f39ded5d0850a426c1 --- /dev/null +++ b/app/views/moderationorga_mailer/accept.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' diff --git a/app/views/moderationorga_mailer/create.text.haml b/app/views/moderationorga_mailer/create.text.haml new file mode 100644 index 0000000000000000000000000000000000000000..d8cc166e0f198a23adb0aadbe1058fb10108d89e --- /dev/null +++ b/app/views/moderationorga_mailer/create.text.haml @@ -0,0 +1,7 @@ += t '.body', subject: @orga.name += surround '<'.html_safe, '>'.html_safe do + = moderations_url +\ += render file: '/orgas/show' +\ += t '.signature' diff --git a/app/views/moderationorga_mailer/destroy.text.haml b/app/views/moderationorga_mailer/destroy.text.haml new file mode 100644 index 0000000000000000000000000000000000000000..203568196b3cffc7697dd61b72e2ffad55ee9d46 --- /dev/null +++ b/app/views/moderationorga_mailer/destroy.text.haml @@ -0,0 +1,10 @@ += t '.body', author: @current_user +\ += @reason +\ += t '.reclamation' +\ += t '.reminder' += render file: '/orgas/show' +\ += t '.signature' diff --git a/app/views/moderationorga_mailer/update.text.haml b/app/views/moderationorga_mailer/update.text.haml new file mode 100644 index 0000000000000000000000000000000000000000..281ce7c972a403c47f4aea4fdb8fa8606f401edd --- /dev/null +++ b/app/views/moderationorga_mailer/update.text.haml @@ -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'