annotate .svn/pristine/be/bebf89ca5a3db200d6d80b86eb0506e8ad487399.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents dffacf8a6908
children
rev   line source
Chris@1517 1 <% show_revision_graph = ( @repository.supports_revision_graph? && path.blank? ) %>
Chris@1517 2 <%= if show_revision_graph && revisions && revisions.any?
Chris@1517 3 indexed_commits, graph_space = index_commits(revisions, @repository.branches) do |scmid|
Chris@1517 4 url_for(
Chris@1517 5 :controller => 'repositories',
Chris@1517 6 :action => 'revision',
Chris@1517 7 :id => project,
Chris@1517 8 :repository_id => @repository.identifier_param,
Chris@1517 9 :rev => scmid)
Chris@1517 10 end
Chris@1517 11 render :partial => 'revision_graph',
Chris@1517 12 :locals => {
Chris@1517 13 :commits => indexed_commits,
Chris@1517 14 :space => graph_space
Chris@1517 15 }
Chris@1517 16 end %>
Chris@1517 17 <%= form_tag(
Chris@1517 18 {:controller => 'repositories', :action => 'diff', :id => project,
Chris@1517 19 :repository_id => @repository.identifier_param, :path => to_path_param(path)},
Chris@1517 20 :method => :get
Chris@1517 21 ) do %>
Chris@1517 22 <table class="list changesets">
Chris@1517 23 <thead><tr>
Chris@1517 24 <th>#</th>
Chris@1517 25 <th></th>
Chris@1517 26 <th></th>
Chris@1517 27 <th><%= l(:label_date) %></th>
Chris@1517 28 <th><%= l(:field_author) %></th>
Chris@1517 29 <th><%= l(:field_comments) %></th>
Chris@1517 30 </tr></thead>
Chris@1517 31 <tbody>
Chris@1517 32 <% show_diff = revisions.size > 1 %>
Chris@1517 33 <% line_num = 1 %>
Chris@1517 34 <% revisions.each do |changeset| %>
Chris@1517 35 <tr class="changeset <%= cycle 'odd', 'even' %>">
Chris@1517 36 <% id_style = (show_revision_graph ? "padding-left:#{(graph_space + 1) * 20}px" : nil) %>
Chris@1517 37 <%= content_tag(:td, :class => 'id', :style => id_style) do %>
Chris@1517 38 <%= link_to_revision(changeset, @repository) %>
Chris@1517 39 <% end %>
Chris@1517 40 <td class="checkbox"><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').attr('checked',true);") if show_diff && (line_num < revisions.size) %></td>
Chris@1517 41 <td class="checkbox"><%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('#cb-#{line_num}').attr('checked')) {$('#cb-#{line_num-1}').attr('checked',true);}") if show_diff && (line_num > 1) %></td>
Chris@1517 42 <td class="committed_on"><%= format_time(changeset.committed_on) %></td>
Chris@1517 43 <td class="author"><%= changeset.author.to_s.truncate(30) %></td>
Chris@1517 44 <td class="comments"><%= textilizable(truncate_at_line_break(changeset.comments)) %></td>
Chris@1517 45 </tr>
Chris@1517 46 <% line_num += 1 %>
Chris@1517 47 <% end %>
Chris@1517 48 </tbody>
Chris@1517 49 </table>
Chris@1517 50 <%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %>
Chris@1517 51 <% end %>