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
|
2019-12-21 20:55:43 +05:30
|
|
|
%ul.nav-links.nav.nav-tabs
|
|
|
|
- opts = params[:visibility_level].present? ? {} : { page: admin_projects_path }
|
|
|
|
= nav_link(opts) do
|
|
|
|
= link_to _('All'), admin_projects_path
|
|
|
|
|
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::PRIVATE.to_s) }) do
|
|
|
|
= link_to _('Private'), admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PRIVATE)
|
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::INTERNAL.to_s) }) do
|
|
|
|
= link_to _('Internal'), admin_projects_path(visibility_level: Gitlab::VisibilityLevel::INTERNAL)
|
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::PUBLIC.to_s) }) do
|
|
|
|
= link_to _('Public'), admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PUBLIC)
|
|
|
|
|
|
|
|
.nav-controls
|
2019-12-04 20:38:33 +05:30
|
|
|
.search-holder
|
|
|
|
= render 'shared/projects/search_form', autofocus: true, admin_view: true
|
|
|
|
.dropdown
|
2021-04-29 21:17:54 +05:30
|
|
|
- toggle_text = _('Namespace')
|
2019-12-04 20:38:33 +05:30
|
|
|
- if params[:namespace_id].present?
|
|
|
|
= hidden_field_tag :namespace_id, params[:namespace_id]
|
|
|
|
- namespace = Namespace.find(params[:namespace_id])
|
|
|
|
- toggle_text = "#{namespace.kind}: #{namespace.full_path}"
|
|
|
|
= dropdown_toggle(toggle_text, { toggle: 'dropdown', is_filter: 'true' }, { toggle_class: 'js-namespace-select large' })
|
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-right
|
2021-04-29 21:17:54 +05:30
|
|
|
= dropdown_title(_('Namespaces'))
|
|
|
|
= dropdown_filter(_("Search for Namespace"))
|
2019-12-04 20:38:33 +05:30
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|
|
|
|
= 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'
|