You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
agenda-libre-ruby/app/views/event_mailer/update.text.haml

20 lines
473 B

!= t '.body', subject: @event.title, author: @current_user || t('.submitter')
:ruby
new = render template: '/events/show'
former = @event
@event = @event.paper_trail.previous_version || @event
prev = render template: '/events/show'
@event = former
require 'differ/format/patch'
Differ.format = Differ::Format::Patch
!= Differ.diff new, prev
\
= surround '<'.html_safe, '>'.html_safe do
= edit_event_url @event, secret: @event.secret
\
!= t '.signature'