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