Skip to content

Commit

Permalink
Merge pull request #6207 from DavidKang/fix-breadcrumb
Browse files Browse the repository at this point in the history
Fix breadcrumb for staging_workflow
  • Loading branch information
bgeuken committed Nov 8, 2018
2 parents 0df76a0 + 251c0e5 commit dc4e57c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
= render partial: 'webui/project/breadcrumb_items'
- if current_page?(staging_workflow_path(@staging_workflow))
- if controller_name == 'staging_workflows' && action_name == 'show'
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Staging Projects
- elsif controller_name == 'staging_workflows' && action_name == 'new'
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Create Staging Projects
- else
%li.breadcrumb-item
= link_to 'Staging Projects', staging_workflow_path(@staging_workflow)
Expand Down

0 comments on commit dc4e57c

Please sign in to comment.