debian-mirror-gitlab/app/views/admin/projects/index.html.haml

28 lines
1.5 KiB
Text
Raw Normal View History

2019-12-21 20:55:43 +05:30
- page_title _('Projects')
2016-08-24 12:49:21 +05:30
- params[:visibility_level] ||= []
2019-12-04 20:38:33 +05:30
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
2021-11-18 22:05:49 +05:30
= gl_tabs_nav({ class: 'gl-border-b-0 gl-overflow-x-auto gl-flex-grow-1 gl-flex-nowrap gl-webkit-scrollbar-display-none' }) do
= gl_tab_link_to _('All'), admin_projects_path(visibility_level: nil), { item_active: params[:visibility_level].empty? }
= gl_tab_link_to _('Private'), admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PRIVATE)
= gl_tab_link_to _('Internal'), admin_projects_path(visibility_level: Gitlab::VisibilityLevel::INTERNAL)
= gl_tab_link_to _('Public'), admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PUBLIC)
2019-12-21 20:55:43 +05:30
.nav-controls
2019-12-04 20:38:33 +05:30
.search-holder
= render 'shared/projects/search_form', autofocus: true, admin_view: true
2021-11-18 22:05:49 +05:30
- current_namespace = _('Namespace')
- if params[:namespace_id].present?
- namespace = Namespace.find(params[:namespace_id])
- current_namespace = "#{namespace.kind}: #{namespace.full_path}"
%button.dropdown-menu-toggle.btn.btn-default.btn-md.gl-button.js-namespace-select{ data: { show_any: 'true', field_name: 'namespace_id', placeholder: current_namespace, update_location: 'true' }, type: 'button' }
%span.gl-new-dropdown-button-text
= current_namespace
2019-12-04 20:38:33 +05:30
= render 'shared/projects/dropdown'
2021-04-17 20:07:23 +05:30
= link_to new_project_path, class: 'gl-button btn btn-confirm' do
2021-04-29 21:17:54 +05:30
= _('New Project')
= button_tag _("Search"), class: "gl-button btn btn-confirm btn-search hide"
2015-09-11 14:41:01 +05:30
2019-12-04 20:38:33 +05:30
= render 'projects'