Chris@909
|
1 <%= wiki_page_breadcrumb(@page) %>
|
Chris@909
|
2
|
Chris@909
|
3 <h2><%= h(@page.pretty_title) %></h2>
|
Chris@909
|
4
|
Chris@909
|
5 <h3><%= l(:label_history) %></h3>
|
Chris@909
|
6
|
Chris@909
|
7 <% form_tag({:action => "diff"}, :method => :get) do %>
|
Chris@909
|
8 <table class="list wiki-page-versions">
|
Chris@909
|
9 <thead><tr>
|
Chris@909
|
10 <th>#</th>
|
Chris@909
|
11 <th></th>
|
Chris@909
|
12 <th></th>
|
Chris@909
|
13 <th><%= l(:field_updated_on) %></th>
|
Chris@909
|
14 <th><%= l(:field_author) %></th>
|
Chris@909
|
15 <th><%= l(:field_comments) %></th>
|
Chris@909
|
16 <th></th>
|
Chris@909
|
17 </tr></thead>
|
Chris@909
|
18 <tbody>
|
Chris@909
|
19 <% show_diff = @versions.size > 1 %>
|
Chris@909
|
20 <% line_num = 1 %>
|
Chris@909
|
21 <% @versions.each do |ver| %>
|
Chris@909
|
22 <tr class="wiki-page-version <%= cycle("odd", "even") %>">
|
Chris@909
|
23 <td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
|
Chris@909
|
24 <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %></td>
|
Chris@909
|
25 <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
|
Chris@909
|
26 <td class="updated_on"><%= format_time(ver.updated_on) %></td>
|
Chris@909
|
27 <td class="author"><%= link_to_user ver.author %></td>
|
Chris@909
|
28 <td class="comments"><%=h ver.comments %></td>
|
Chris@909
|
29 <td class="buttons"><%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %></td>
|
Chris@909
|
30 </tr>
|
Chris@909
|
31 <% line_num += 1 %>
|
Chris@909
|
32 <% end %>
|
Chris@909
|
33 </tbody>
|
Chris@909
|
34 </table>
|
Chris@909
|
35 <%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>
|
Chris@909
|
36 <span class="pagination"><%= pagination_links_full @version_pages, @version_count, :page_param => :p %></span>
|
Chris@909
|
37 <% end %>
|