Skip to content

Commit

Permalink
Fix elsif condition in project breadcrumbs
Browse files Browse the repository at this point in the history
When 'Overview' is rendered it can not happen that any of the below pages
('Repositories', 'Monitor', ...) are also rendered. And vice versa.
  • Loading branch information
eduardoj committed Dec 6, 2018
1 parent 39b6bea commit 6f68d93
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- if current_page?(project_show_path(@project))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Overview
- if current_page?(project_requests_path(@project))
- elsif current_page?(project_requests_path(@project))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Requests
- elsif current_page?(project_users_path(@project))
Expand All @@ -22,4 +22,3 @@
- elsif current_page?(project_status_path(@project))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Status

0 comments on commit 6f68d93

Please sign in to comment.