2013-01-07 16:45:48 +01:00
|
|
|
.tabbable
|
|
|
|
|
%ul.nav.nav-tabs
|
|
|
|
|
%li.active
|
|
|
|
|
= link_to "Proposal", "#proposal-content", "data-toggle"=>"tab"
|
|
|
|
|
%li
|
|
|
|
|
= link_to "History", "#history-content", "data-toggle"=>"tab"
|
|
|
|
|
.tab-content
|
|
|
|
|
#proposal-content.tab-pane.active
|
|
|
|
|
= render 'proposal'
|
|
|
|
|
#history-content.tab-pane
|
2014-03-17 16:36:32 +01:00
|
|
|
.col-md-12
|
2013-01-07 16:45:48 +01:00
|
|
|
%table.table
|
|
|
|
|
%thead
|
|
|
|
|
%th
|
|
|
|
|
%b Who
|
|
|
|
|
%th
|
|
|
|
|
%b Timestamp
|
|
|
|
|
%th
|
|
|
|
|
%b Modification Type
|
|
|
|
|
%th
|
|
|
|
|
%b Changes
|
|
|
|
|
%tbody
|
|
|
|
|
- @event.versions.each do |version|
|
|
|
|
|
%tr
|
|
|
|
|
%td
|
|
|
|
|
- if !version.whodunnit.nil?
|
2014-06-23 19:07:50 +03:00
|
|
|
= User.find(version.whodunnit).name
|
2013-01-07 16:45:48 +01:00
|
|
|
- else
|
|
|
|
|
No user (probably via the console)
|
|
|
|
|
%td
|
|
|
|
|
= version.created_at
|
|
|
|
|
%td
|
|
|
|
|
= version.event
|
|
|
|
|
%td
|
|
|
|
|
- version.changeset.each_key do |key|
|
|
|
|
|
= "#{key}: #{version.changeset[key][0]} -> #{version.changeset[key][1]}"
|
|
|
|
|
%br
|
2013-01-07 09:04:09 +01:00
|
|
|
|