To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / cd / cd08316525f41ab12ddac1b7021cfbcc0f617e7e.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.85 KB)
| 1 | 1296:038ba2d95de8 | Chris | <%= wiki_page_breadcrumb(@page) %> |
|---|---|---|---|
| 2 | |||
| 3 | <h2><%= h(@page.pretty_title) %></h2> |
||
| 4 | |||
| 5 | <h3><%= l(:label_history) %></h3> |
||
| 6 | |||
| 7 | <%= form_tag({:controller => 'wiki', :action => 'diff',
|
||
| 8 | :project_id => @page.project, :id => @page.title}, |
||
| 9 | :method => :get) do %> |
||
| 10 | <table class="list wiki-page-versions"> |
||
| 11 | <thead><tr> |
||
| 12 | <th>#</th> |
||
| 13 | <th></th> |
||
| 14 | <th></th> |
||
| 15 | <th><%= l(:field_updated_on) %></th> |
||
| 16 | <th><%= l(:field_author) %></th> |
||
| 17 | <th><%= l(:field_comments) %></th> |
||
| 18 | <th></th> |
||
| 19 | </tr></thead> |
||
| 20 | <tbody> |
||
| 21 | <% show_diff = @versions.size > 1 %> |
||
| 22 | <% line_num = 1 %> |
||
| 23 | <% @versions.each do |ver| %> |
||
| 24 | <tr class="wiki-page-version <%= cycle("odd", "even") %>">
|
||
| 25 | <td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td> |
||
| 26 | <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').attr('checked', true);") if show_diff && (line_num < @versions.size) %></td>
|
||
| 27 | <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
|
||
| 28 | <td class="updated_on"><%= format_time(ver.updated_on) %></td> |
||
| 29 | <td class="author"><%= link_to_user ver.author %></td> |
||
| 30 | <td class="comments"><%=h ver.comments %></td> |
||
| 31 | <td class="buttons"> |
||
| 32 | <%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %> |
||
| 33 | <%= delete_link wiki_page_path(@page, :version => ver.version) if User.current.allowed_to?(:delete_wiki_pages, @page.project) && @version_count > 1 %> |
||
| 34 | </td> |
||
| 35 | </tr> |
||
| 36 | <% line_num += 1 %> |
||
| 37 | <% end %> |
||
| 38 | </tbody> |
||
| 39 | </table> |
||
| 40 | <%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %> |
||
| 41 | <span class="pagination"><%= pagination_links_full @version_pages, @version_count %></span> |
||
| 42 | <% end %> |