2017-10-21 20:21:25 +02:00
|
|
|
!= t '.body', subject: @event.title, author: @current_user || t('.submitter')
|
2014-06-09 12:18:40 +02:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
:ruby
|
2019-11-17 12:56:11 +01:00
|
|
|
new = render template: '/events/show'
|
2014-07-20 02:42:46 +02:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
former = @event
|
2016-07-02 16:48:47 +02:00
|
|
|
@event = @event.paper_trail.previous_version || @event
|
2014-07-20 02:42:46 +02:00
|
|
|
|
2019-11-17 12:56:11 +01:00
|
|
|
prev = render template: '/events/show'
|
2015-07-25 18:32:27 +02:00
|
|
|
@event = former
|
2014-07-20 02:42:46 +02:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
require 'differ/format/patch'
|
|
|
|
Differ.format = Differ::Format::Patch
|
2017-10-21 20:21:25 +02:00
|
|
|
!= Differ.diff new, prev
|
2014-06-09 12:18:40 +02:00
|
|
|
\
|
2016-10-18 23:28:18 +02:00
|
|
|
= surround '<'.html_safe, '>'.html_safe do
|
2016-10-28 19:14:24 +02:00
|
|
|
= edit_moderation_url @event
|
2014-06-09 12:18:40 +02:00
|
|
|
\
|
2017-10-21 20:21:25 +02:00
|
|
|
!= t '.signature'
|