summaryrefslogtreecommitdiff
blob: 12800846ed18f26a75ca4ab07d8eebe3cc7a7631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h1>Comparing revisions <%= params[:old] %> and <%= params[:new] %></h1>

<div class="box buttons">
  <span class="floatright">
    <%= link_to "#{image_tag 'icons/draft.png'} Back".html_safe, {:controller => 'glsa', :action => 'show', :id => @glsa}, {:class => 'button'} %>
  </span>
  <%= form_tag(:action => :diff, :id => @glsa.id) do %>
  <%= submit_tag 'Compare' %> revisions
  <%= select_tag :old,
                 options_from_collection_for_select(@glsa.revisions, :revid, :revid) %> (old)
  and
  <%= select_tag :new,
                 options_from_collection_for_select(@glsa.revisions, :revid, :revid) %> (new).
  <% end %>
</div>

<pre>
<%= @diff %>
</pre>