To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 73 / 733b596d53c40ed4baf1da5919b8ef878d966efe.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (1.59 KB)

1
<%= wiki_page_breadcrumb(@page) %>
2

    
3
<h2><%= h(@page.pretty_title) %></h2>
4

    
5
<h3><%= l(:label_history) %></h3>
6

    
7
<% form_tag({:action => "diff"}, :method => :get) do %>
8
<table class="list wiki-page-versions">
9
<thead><tr>
10
    <th>#</th>
11
    <th></th>
12
    <th></th>
13
    <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
<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>
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>
26
    <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
</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 %>