2017-10-21 20:21:25 +02:00
|
|
|
!= t '.body', subject: @event.title, author: @current_user || t('.submitter')
|
2016-10-28 19:14:24 +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
|
2017-10-21 20:21:25 +02:00
|
|
|
!= Differ.diff new, prev
|
2016-10-28 19:14:24 +02:00
|
|
|
\
|
|
|
|
= surround '<'.html_safe, '>'.html_safe do
|
|
|
|
= edit_event_url @event, secret: @event.secret
|
|
|
|
\
|
2017-10-21 20:21:25 +02:00
|
|
|
!= t '.signature'
|