2017-10-21 20:21:25 +02:00
|
|
|
!= t '.body', subject: @orga.name, author: @current_user || t('.submitter')
|
2016-10-28 18:11:27 +02:00
|
|
|
|
|
|
|
:ruby
|
2019-11-17 12:56:11 +01:00
|
|
|
new = render template: '/orgas/show'
|
2016-10-28 18:11:27 +02:00
|
|
|
|
|
|
|
former = @orga
|
|
|
|
@orga = @orga.paper_trail.previous_version || @orga
|
|
|
|
|
2019-11-17 12:56:11 +01:00
|
|
|
prev = render template: '/orgas/show'
|
2016-10-28 18:11:27 +02:00
|
|
|
@orga = 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 18:11:27 +02:00
|
|
|
\
|
|
|
|
= surround '<'.html_safe, '>'.html_safe do
|
|
|
|
= edit_orga_url @orga
|
|
|
|
\
|
2017-10-21 20:21:25 +02:00
|
|
|
!= t '.signature'
|