2016-06-14 16:37:02 -04:00
|
|
|
- @no_container = true
|
2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Projects"
|
2016-05-26 18:55:49 -04:00
|
|
|
- params[:visibility_level] ||= []
|
|
|
|
|
2015-04-26 18:43:02 -04:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2017-10-04 12:32:03 -04:00
|
|
|
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
|
2016-05-26 18:55:49 -04:00
|
|
|
.prepend-top-default
|
2017-03-03 05:13:03 -05:00
|
|
|
.search-holder
|
|
|
|
= render 'shared/projects/search_form', autofocus: true, icon: true
|
|
|
|
.dropdown
|
|
|
|
- toggle_text = 'Namespace'
|
|
|
|
- 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}"
|
2017-10-26 07:17:02 -04:00
|
|
|
= dropdown_toggle(toggle_text, { toggle: 'dropdown', is_filter: 'true' }, { toggle_class: 'js-namespace-select large' })
|
2018-04-17 13:18:41 -04:00
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-right
|
2017-03-03 05:13:03 -05:00
|
|
|
= dropdown_title('Namespaces')
|
|
|
|
= dropdown_filter("Search for Namespace")
|
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|
|
|
|
= render 'shared/projects/dropdown'
|
|
|
|
= link_to new_project_path, class: 'btn btn-new' do
|
|
|
|
New Project
|
|
|
|
= button_tag "Search", class: "btn btn-primary btn-search hide"
|
2016-05-26 18:55:49 -04:00
|
|
|
|
2018-04-19 23:34:20 -04:00
|
|
|
%ul.nav-links.nav.nav-tabs
|
2016-12-08 13:59:41 -05:00
|
|
|
- opts = params[:visibility_level].present? ? {} : { page: admin_projects_path }
|
2016-05-26 18:55:49 -04:00
|
|
|
= nav_link(opts) do
|
2016-12-08 13:59:41 -05:00
|
|
|
= link_to admin_projects_path do
|
2016-05-26 18:55:49 -04:00
|
|
|
All
|
2013-01-13 10:24:29 -05:00
|
|
|
|
2017-02-12 03:02:26 -05:00
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::PRIVATE.to_s) }) do
|
2016-12-08 13:59:41 -05:00
|
|
|
= link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PRIVATE) do
|
2016-05-26 18:55:49 -04:00
|
|
|
Private
|
2017-02-12 03:02:26 -05:00
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::INTERNAL.to_s) }) do
|
2016-12-08 13:59:41 -05:00
|
|
|
= link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::INTERNAL) do
|
2016-05-26 18:55:49 -04:00
|
|
|
Internal
|
2017-02-12 03:02:26 -05:00
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::PUBLIC.to_s) }) do
|
2016-12-08 13:59:41 -05:00
|
|
|
= link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PUBLIC) do
|
2016-05-26 18:55:49 -04:00
|
|
|
Public
|
2014-06-03 07:19:11 -04:00
|
|
|
|
2017-03-03 05:13:03 -05:00
|
|
|
= render 'projects'
|