forked from openSUSE/open-build-service
/
_breadcrumb_items.html.haml
27 lines (26 loc) · 1.23 KB
/
_breadcrumb_items.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
= render partial: 'webui/project/breadcrumb_items'
-# The package doesn't exist in the context of package#new, so we don't check other paths below to avoid exceptions
- if current_page?(new_package_path(@project))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Create Package
- else
%li.breadcrumb-item.text-word-break-all
%i.fa.fa-archive
= link_to(@package, package_show_path(@project, @package))
- if current_page?(package_view_revisions_path(@project, @package))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Revisions
- if current_page?(package_requests_path(@project, @package))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Requests
- if current_page?(package_users_path(@project, @package))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Users
- if current_page?(package_show_path(@project, @package))
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Overview
- if controller_name == 'package' && action_name == 'statistics'
%li.breadcrumb-item
= link_to 'Repository State', project_package_repository_binaries_path(@project, @package_name, @repository)
%li.breadcrumb-item.active{ 'aria-current' => 'page' }
Statistics