aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/packages/_changelog_entry.html.erb')
-rw-r--r--app/views/packages/_changelog_entry.html.erb21
1 files changed, 11 insertions, 10 deletions
diff --git a/app/views/packages/_changelog_entry.html.erb b/app/views/packages/_changelog_entry.html.erb
index e592f89..17a6e66 100644
--- a/app/views/packages/_changelog_entry.html.erb
+++ b/app/views/packages/_changelog_entry.html.erb
@@ -1,28 +1,29 @@
<li class="list-group-item">
- <strong><%= annotate_bugs changelog[:message].lines.first %></strong>
+ <strong><%= annotate_bugs changelog.message.lines.first %></strong>
<div class="kk-byline">
- <%= mail_to changelog[:email], changelog[:author] %>,
- <%= i18n_date(changelog[:date]) %>,
- commit&nbsp;<%= link_to_gitweb_commit changelog[:id]%>
+ <%= 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? %>
+
+ <% 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>
+ <td><%= safe_join(changelog.files["added"].select { |file| file.include?(@package.category + '/' + @package.name) }.map {|f| link_to_gitweb_ebuild_diff(f.split('/').last, changelog.id, @package.category, @package.name) }, ', ') %></td>
</tr>
<% end %>
- <% unless changelog[:files][:modified].empty? %>
+ <% 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>
+ <td><%= safe_join(changelog.files["modified"].select { |file| file.include?(@package.category + '/' + @package.name) }.map {|f| link_to_gitweb_ebuild_diff(f.split('/').last, changelog.id, @package.category, @package.name) }, ', ') %></td>
</tr>
<% end %>
- <% unless changelog[:files][:deleted].empty? %>
+ <% 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>
+ <td><%= safe_join(changelog.files["deleted"].select { |file| file.include?(@package.category + '/' + @package.name) }.map {|f| link_to_gitweb_ebuild_diff(f.split('/').last, changelog.id, @package.category, @package.name) }, ', ') %></td>
</tr>
<% end %>