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