Skip to content

Commit

Permalink
[webui] Fix breadcrumbs of Kiwi Editor
Browse files Browse the repository at this point in the history
Now it shows the package link
  • Loading branch information
Moises Deniz Aleman committed Oct 19, 2017
1 parent 4782376 commit 07db0f4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/helpers/webui/kiwi/image_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ module Webui::Kiwi::ImageHelper

def kiwi_image_breadcrumb(kiwi_image, *args)
@project = kiwi_image.package.try(:project)
@package = kiwi_image.package
return unless @project

args.insert(0, link_to_if(params['action'] != 'show', 'Image',
kiwi_image_path(id: kiwi_image)))
args.insert(0, link_to(@package, package_show_path(project: @project, package: @package)))
project_bread_crumb( *args )
end
end

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 07db0f4

Please sign in to comment.