annotate .svn/pristine/1f/1f78c9cd9879f6fcb3d4c7ae2bf80de5b578d42c.svn-base @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <% show_revision_graph = ( @repository.supports_revision_graph? && path.blank? ) %>
Chris@909 2 <% form_tag({:controller => 'repositories', :action => 'diff', :id => @project, :path => to_path_param(path)}, :method => :get) do %>
Chris@909 3 <table class="list changesets">
Chris@909 4 <thead><tr>
Chris@909 5 <% if show_revision_graph %>
Chris@909 6 <th></th>
Chris@909 7 <% end %>
Chris@909 8 <th>#</th>
Chris@909 9 <th></th>
Chris@909 10 <th></th>
Chris@909 11 <th><%= l(:label_date) %></th>
Chris@909 12 <th><%= l(:field_author) %></th>
Chris@909 13 <th><%= l(:field_comments) %></th>
Chris@909 14 </tr></thead>
Chris@909 15 <tbody>
Chris@909 16 <% show_diff = revisions.size > 1 %>
Chris@909 17 <% line_num = 1 %>
Chris@909 18 <% revisions.each do |changeset| %>
Chris@909 19 <tr class="changeset <%= cycle 'odd', 'even' %>">
Chris@909 20 <% if show_revision_graph %>
Chris@909 21 <% if line_num == 1 %>
Chris@909 22 <td class="revision_graph" rowspan="<%= revisions.size %>">
Chris@909 23 <% href_base = Proc.new {|x| url_for(:controller => 'repositories',
Chris@909 24 :action => 'revision',
Chris@909 25 :id => project,
Chris@909 26 :rev => x) } %>
Chris@909 27 <%= render :partial => 'revision_graph',
Chris@909 28 :locals => {
Chris@909 29 :commits => index_commits(
Chris@909 30 revisions,
Chris@909 31 @repository.branches,
Chris@909 32 href_base
Chris@909 33 )
Chris@909 34 } %>
Chris@909 35 </td>
Chris@909 36 <% end %>
Chris@909 37 <% end %>
Chris@909 38 <td class="id"><%= link_to_revision(changeset, project) %></td>
Chris@909 39 <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@909 40 <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@909 41 <td class="committed_on"><%= format_time(changeset.committed_on) %></td>
Chris@909 42 <td class="author"><%= h truncate(changeset.author.to_s, :length => 30) %></td>
Chris@909 43 <% if show_revision_graph %>
Chris@909 44 <td class="comments_nowrap">
Chris@909 45 <%= textilizable(truncate(truncate_at_line_break(changeset.comments, 0), :length => 90)) %>
Chris@909 46 </td>
Chris@909 47 <% else %>
Chris@909 48 <td class="comments"><%= textilizable(truncate_at_line_break(changeset.comments)) %></td>
Chris@909 49 <% end %>
Chris@909 50 </tr>
Chris@909 51 <% line_num += 1 %>
Chris@909 52 <% end %>
Chris@909 53 </tbody>
Chris@909 54 </table>
Chris@909 55 <%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %>
Chris@909 56 <% end %>