aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/packages/changelog.html.erb')
-rw-r--r--app/views/packages/changelog.html.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/packages/changelog.html.erb b/app/views/packages/changelog.html.erb
new file mode 100644
index 0000000..df9242e
--- /dev/null
+++ b/app/views/packages/changelog.html.erb
@@ -0,0 +1,12 @@
+<% if @changelog.empty? -%>
+ <li class="list-group-item kk-panel-content-sorry">
+ <%= t :changelog_empty %>
+ <br><br>
+ <a href="https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/<%= @package.atom %>/ChangeLog?view=markup" class="btn btn-default">
+ <span class="fa fa-fw fa-history"></span>
+ <%= t :view_cvs_changelog %>
+ </a>
+ </li>
+<% else %>
+ <%= render partial: 'changelog_entry', collection: @changelog, as: 'changelog' %>
+<% end %>