To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / wiki / history.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.59 KB)
| 1 | 909:cbb26bc654de | Chris | <%= wiki_page_breadcrumb(@page) %>
|
|---|---|---|---|
| 2 | |||
| 3 | <h2><%= h(@page.pretty_title) %></h2> |
||
| 4 | 0:513646585e45 | Chris | |
| 5 | <h3><%= l(:label_history) %></h3> |
||
| 6 | |||
| 7 | <% form_tag({:action => "diff"}, :method => :get) do %>
|
||
| 8 | 119:8661b858af72 | Chris | <table class="list wiki-page-versions"> |
| 9 | 0:513646585e45 | Chris | <thead><tr> |
| 10 | <th>#</th> |
||
| 11 | <th></th> |
||
| 12 | 909:cbb26bc654de | Chris | <th></th> |
| 13 | 0:513646585e45 | Chris | <th><%= l(:field_updated_on) %></th> |
| 14 | <th><%= l(:field_author) %></th> |
||
| 15 | <th><%= l(:field_comments) %></th> |
||
| 16 | <th></th> |
||
| 17 | </tr></thead> |
||
| 18 | <tbody>
|
||
| 19 | <% show_diff = @versions.size > 1 %>
|
||
| 20 | <% line_num = 1 %>
|
||
| 21 | <% @versions.each do |ver| %>
|
||
| 22 | 119:8661b858af72 | Chris | <tr class="wiki-page-version <%= cycle("odd", "even") %>"> |
| 23 | 909:cbb26bc654de | Chris | <td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td> |
| 24 | 0:513646585e45 | Chris | <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> |
||
| 26 | 119:8661b858af72 | Chris | <td class="updated_on"><%= format_time(ver.updated_on) %></td> |
| 27 | <td class="author"><%= link_to_user ver.author %></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> |
||
| 30 | 0:513646585e45 | Chris | </tr>
|
| 31 | <% line_num += 1 %>
|
||
| 32 | <% end %>
|
||
| 33 | </tbody>
|
||
| 34 | </table>
|
||
| 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> |
||
| 37 | <% end %> |