annotate app/views/repositories/_revisions.rhtml @ 904:0a8317a50fa0
redmine-1.1
Close obsolete branch redmine-1.1
author |
Chris Cannam |
date |
Fri, 14 Jan 2011 12:53:21 +0000 |
parents |
af80e5618e9b |
children |
de76cd3e8c8e |
rev |
line source |
Chris@0
|
1 <% form_tag({:controller => 'repositories', :action => 'diff', :id => @project, :path => to_path_param(path)}, :method => :get) do %>
|
Chris@0
|
2 <table class="list changesets">
|
Chris@0
|
3 <thead><tr>
|
Chris@0
|
4 <th>#</th>
|
Chris@0
|
5 <th></th>
|
Chris@0
|
6 <th></th>
|
Chris@0
|
7 <th><%= l(:label_date) %></th>
|
Chris@0
|
8 <th><%= l(:field_author) %></th>
|
Chris@0
|
9 <th><%= l(:field_comments) %></th>
|
Chris@0
|
10 </tr></thead>
|
Chris@0
|
11 <tbody>
|
Chris@0
|
12 <% show_diff = revisions.size > 1 %>
|
Chris@0
|
13 <% line_num = 1 %>
|
Chris@0
|
14 <% revisions.each do |changeset| %>
|
Chris@0
|
15 <tr class="changeset <%= cycle 'odd', 'even' %>">
|
Chris@117
|
16 <td class="id"><%= link_to_revision(changeset, project) %></td>
|
Chris@117
|
17 <td class="checkbox"><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %></td>
|
Chris@117
|
18 <td class="checkbox"><%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td>
|
Chris@0
|
19 <td class="committed_on"><%= format_time(changeset.committed_on) %></td>
|
Chris@0
|
20 <td class="author"><%=h changeset.author %></td>
|
Chris@0
|
21 <td class="comments"><%= textilizable(truncate_at_line_break(changeset.comments)) %></td>
|
Chris@0
|
22 </tr>
|
Chris@0
|
23 <% line_num += 1 %>
|
Chris@0
|
24 <% end %>
|
Chris@0
|
25 </tbody>
|
Chris@0
|
26 </table>
|
Chris@0
|
27 <%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %>
|
Chris@0
|
28 <% end %>
|