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