add_diff_link_to_issue_changesets.diff

Jonathan Monahan, 2014-07-01 09:39

Download (1.11 KB)

View differences:

app/views/issues/_changesets.html.erb (working copy)
1 1
<% changesets.each do |changeset| %>
2 2
    <div class="changeset <%= cycle('odd', 'even') %>">
3 3
    <p><%= link_to_revision(changeset, changeset.repository,
4
                            :text => "#{l(:label_revision)} #{changeset.format_identifier}") %><br />
4
                            :text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
5
        <%= link_to('(diff)',
6
               :controller => 'repositories',
7
               :action => 'diff',
8
               :id     => @issue.project,
9
               :repository_id => changeset.repository.identifier_param,
10
               :path   => "",
11
               :rev    => changeset.identifier) if changeset.filechanges.any? %>
12
        <br />
5 13
        <span class="author"><%= authoring(changeset.committed_on, changeset.author) %></span></p>
6 14
    <div class="wiki">
7 15
        <%= textilizable(changeset, :comments) %>