agenda-libre-ruby/app/views/moderation_mailer/update.text.haml
echarp d574b1624a Url sent in mails are now enclosed in angled brackets,
as recommended in RFC 3986 section C (ftp://ftp.rfc-editor.org/in-notes/rfc3986.txt)

Close #77
2016-10-18 23:28:18 +02:00

23 lines
527 B
Plaintext

= t '.body', subject: @event.title, author: @current_user || t('.submitter')
: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
\
= surround '<'.html_safe, '>'.html_safe do
- if @current_user
= edit_moderation_url @event
- else
= edit_event_url @event, secret: @event.secret
\
= t '.signature'