aboutsummaryrefslogtreecommitdiff
blob: 7a7e66d4df7028bdf8df0ec9dcc9531d3ffa514e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<li class="list-group-item">
  <strong><%= annotate_bugs changelog[:message].lines.first %></strong>
  <br>
  <%= changelog[:message].lines[1..-1].map {|line| annotate_bugs line} %>
  <br>
  <div class="kk-byline">
    <%= mail_to changelog[:email], changelog[:author] %>,
    <%= i18n_date(changelog[:date]) %>,
    commit&nbsp;<%= link_to_gitweb_commit changelog[:id]%>
  </div>

  <table class="table table-condensed kk-changelog-diffstat">
    <% unless changelog[:files][:added].empty? %>
      <tr class="success">
        <td class="kk-changelog-diffstat-icon"><span class="octicon octicon-diff-added"></span></td>
        <td><%= safe_join(changelog[:files][:added].map {|f| link_to_gitweb_ebuild_diff(f, changelog[:id], @package.category, @package.name) }, ', ') %></td>
      </tr>
    <% end %>
    <% unless changelog[:files][:modified].empty? %>
      <tr class="warning">
        <td class="kk-changelog-diffstat-icon"><span class="octicon octicon-diff-modified"></span></td>
        <td><%= safe_join(changelog[:files][:modified].map {|f| link_to_gitweb_ebuild_diff(f, changelog[:id], @package.category, @package.name) }, ', ') %></td>
      </tr>
    <% end %>
    <% unless changelog[:files][:deleted].empty? %>
      <tr class="danger">
        <td class="kk-changelog-diffstat-icon"><span class="octicon octicon-diff-removed"></span></td>
        <td><%= safe_join(changelog[:files][:deleted].map {|f| link_to_gitweb_ebuild_diff(f, changelog[:id], @package.category, @package.name) }, ', ')  %></td>
      </tr>
    <% end %>

  </table>
</li>