Skip to content

Commit

Permalink
Add show_derived_packages partial
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereira committed Sep 14, 2018
1 parent 0d21a2b commit 19caf77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
%li
%i.fas.fa-info-circle.text-info
= package.linking_packages.size
= link_to('derived packages', linking_packages_path(project: project, package: package), remote: true)
6 changes: 2 additions & 4 deletions src/api/app/views/webui2/webui/package/_side_links.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
= render partial: 'show_patchinfo', locals: { package: package, project: project }

- if package.linking_packages.present?
%li
%i.fas.fa-info-circle.text-info
= package.linking_packages.size
= link_to('derived packages', linking_packages_path(project: project, package: package), remote: true)
= render partial: 'show_derived_packages', locals: { package: package, project: project }

- if linkinfo
- linked_package = linkinfo[:package]
%li
Expand Down

0 comments on commit 19caf77

Please sign in to comment.