agenda-libre-ruby/app/views/moderation_mailer/update.text.haml

20 lines
444 B
Plaintext
Raw Normal View History

= t '.body', subject: @event.title, author: @current_user || t('.submitter')
2014-06-09 12:18:40 +02:00
:ruby
new = render file: '/events/show'
former = @event
@event = @event.paper_trail.previous_version || @event
prev = render file: '/events/show'
@event = former
require 'differ/format/patch'
Differ.format = Differ::Format::Patch
= Differ.diff new, prev
2014-06-09 12:18:40 +02:00
\
= surround '<'.html_safe, '>'.html_safe do
= edit_moderation_url @event
2014-06-09 12:18:40 +02:00
\
= t '.signature'