Skip to content

Commit

Permalink
Merge pull request #6476 from krauselukas/fix_breadcrumb
Browse files Browse the repository at this point in the history
Prevent exception in repositories breadcrumb
  • Loading branch information
Ana06 committed Dec 6, 2018
2 parents 7919c5f + 0099652 commit 8ea707f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- if current_page?(repositories_path)
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Repositories
- elsif current_page?(project_repository_state_path)
- elsif defined?(@repository) && current_page?(project_repository_state_path)
%li.breadcrumb-item
= link_to 'Repositories', repositories_path
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Expand Down

0 comments on commit 8ea707f

Please sign in to comment.