2014-06-09 12:18:40 +02:00
|
|
|
=t '.title'
|
|
|
|
\
|
2014-07-01 22:17:57 +02:00
|
|
|
=t '.body', subject: @event.title, author: @current_user||t('.submitter')
|
2014-06-09 12:18:40 +02:00
|
|
|
|
2014-07-20 02:42:46 +02:00
|
|
|
- new = render file: '/events/show'
|
|
|
|
|
|
|
|
- former = @event
|
2014-08-06 14:47:47 +02:00
|
|
|
- @event = @older_event
|
2014-07-20 02:42:46 +02:00
|
|
|
|
|
|
|
- prev = render file: '/events/show'
|
|
|
|
- @event = former
|
|
|
|
|
2014-10-26 18:32:46 +01:00
|
|
|
- require 'differ/format/patch'
|
|
|
|
- Differ.format = Differ::Format::Patch
|
|
|
|
= Differ.diff new, prev
|
2014-06-09 12:18:40 +02:00
|
|
|
\
|
2014-07-01 22:46:53 +02:00
|
|
|
- if @current_user
|
|
|
|
= edit_moderation_url @event
|
|
|
|
- else
|
|
|
|
= edit_event_url @event, secret: @event.secret
|
2014-06-09 12:18:40 +02:00
|
|
|
\
|
|
|
|
=t '.signature'
|