2016-06-14 20:37:02 +00:00
|
|
|
- @no_container = true
|
2015-04-30 17:06:18 +00:00
|
|
|
- page_title "Projects"
|
2016-05-26 22:55:49 +00:00
|
|
|
- params[:visibility_level] ||= []
|
|
|
|
|
2015-04-26 22:43:02 +00:00
|
|
|
|
2016-06-30 13:01:26 +00:00
|
|
|
%div{ class: container_class }
|
2017-10-04 16:32:03 +00:00
|
|
|
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
|
2016-05-26 22:55:49 +00:00
|
|
|
.prepend-top-default
|
2017-03-03 10:13:03 +00: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 11:17:02 +00:00
|
|
|
= dropdown_toggle(toggle_text, { toggle: 'dropdown', is_filter: 'true' }, { toggle_class: 'js-namespace-select large' })
|
2018-04-17 17:18:41 +00:00
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-right
|
2017-03-03 10:13:03 +00: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 22:55:49 +00:00
|
|
|
|
2018-04-20 03:34:20 +00:00
|
|
|
%ul.nav-links.nav.nav-tabs
|
2016-12-08 18:59:41 +00:00
|
|
|
- opts = params[:visibility_level].present? ? {} : { page: admin_projects_path }
|
2016-05-26 22:55:49 +00:00
|
|
|
= nav_link(opts) do
|
2016-12-08 18:59:41 +00:00
|
|
|
= link_to admin_projects_path do
|
2016-05-26 22:55:49 +00:00
|
|
|
All
|
2013-01-13 15:24:29 +00:00
|
|
|
|
2017-02-12 08:02:26 +00:00
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::PRIVATE.to_s) }) do
|
2016-12-08 18:59:41 +00:00
|
|
|
= link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PRIVATE) do
|
2016-05-26 22:55:49 +00:00
|
|
|
Private
|
2017-02-12 08:02:26 +00:00
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::INTERNAL.to_s) }) do
|
2016-12-08 18:59:41 +00:00
|
|
|
= link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::INTERNAL) do
|
2016-05-26 22:55:49 +00:00
|
|
|
Internal
|
2017-02-12 08:02:26 +00:00
|
|
|
= nav_link(html_options: { class: active_when(params[:visibility_level] == Gitlab::VisibilityLevel::PUBLIC.to_s) }) do
|
2016-12-08 18:59:41 +00:00
|
|
|
= link_to admin_projects_path(visibility_level: Gitlab::VisibilityLevel::PUBLIC) do
|
2016-05-26 22:55:49 +00:00
|
|
|
Public
|
2014-06-03 11:19:11 +00:00
|
|
|
|
2017-03-03 10:13:03 +00:00
|
|
|
= render 'projects'
|