Skip to content

Commit

Permalink
Merge pull request #6491 from bgeuken/fix_breadcrumbs
Browse files Browse the repository at this point in the history
Add project variable to all *_path calls in our breadcrumb partial
  • Loading branch information
hennevogel committed Dec 6, 2018
2 parents f263fe8 + d792634 commit 6529f9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
- if current_page?(project_show_path(@project))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Overview
- if current_page?(project_requests_path)
- if current_page?(project_requests_path(@project))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Requests
- elsif current_page?(project_users_path)
- elsif current_page?(project_users_path(@project))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Users
- elsif current_page?(project_config_path(@project))
Expand Down
12 changes: 6 additions & 6 deletions src/api/app/views/webui2/webui/project/_tabs.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@
= tab_link('Maintained Projects', project_maintained_projects_path)
- unless project.defines_remote_instance? || project.is_maintenance?
%li.nav-item
= tab_link('Repositories', repositories_path)
= tab_link('Repositories', repositories_path(project))
%li.nav-item
= tab_link('Monitor', project_monitor_path(project))
%li.nav-item
= tab_link('Requests', project_requests_path)
= tab_link('Requests', project_requests_path(project))
- unless project.defines_remote_instance?
%li.nav-item
= tab_link('Users', project_users_path)
= tab_link('Users', project_users_path(project))
- unless project.defines_remote_instance? || project.is_maintenance?
%li.nav-item
= tab_link('Subprojects', project_subprojects_path(project))
%li.nav-item
= tab_link('Project Config', project_config_path)
= tab_link('Project Config', project_config_path(project))
%li.nav-item
= tab_link('Attributes', index_attribs_path(project))
%li.nav-item
= tab_link('Meta', project_meta_path)
= tab_link('Meta', project_meta_path(project))
- unless project.defines_remote_instance? || project.is_maintenance?
%li.nav-item
= tab_link('Status', project_status_path(project))
%li.nav-item
= tab_link('Pulse', project_pulse_path)
= tab_link('Pulse', project_pulse_path(project))
%li.nav-item.dropdown
%a.nav-link.dropdown-toggle{ href: '#', 'data-toggle': 'dropdown', 'role': 'button', 'aria-expanded': 'false', 'aria-haspopup': 'true' }
.dropdown-menu.dropdown-menu-right

0 comments on commit 6529f9f

Please sign in to comment.