2014-09-02 18:07:02 +05:30
|
|
|
.row
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to '#aside', class: 'show-aside' do
|
|
|
|
%i.fa.fa-angle-left
|
|
|
|
%aside.col-md-3
|
2014-09-02 18:07:02 +05:30
|
|
|
.admin-filter
|
2015-04-26 12:48:37 +05:30
|
|
|
= form_tag admin_namespaces_projects_path, method: :get, class: '' do
|
2014-09-02 18:07:02 +05:30
|
|
|
.form-group
|
|
|
|
= label_tag :name, 'Name:'
|
|
|
|
= text_field_tag :name, params[:name], class: "form-control"
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
= label_tag :namespace_id, "Namespace"
|
|
|
|
= namespace_select_tag :namespace_id, selected: params[:namespace_id], class: 'input-large'
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
%strong Activity
|
|
|
|
.checkbox
|
2015-04-26 12:48:37 +05:30
|
|
|
= label_tag :with_push do
|
|
|
|
= check_box_tag :with_push, 1, params[:with_push]
|
|
|
|
%span Projects with push events
|
2014-09-02 18:07:02 +05:30
|
|
|
.checkbox
|
2015-04-26 12:48:37 +05:30
|
|
|
= label_tag :abandoned do
|
|
|
|
= check_box_tag :abandoned, 1, params[:abandoned]
|
|
|
|
%span No activity over 6 month
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
%fieldset
|
|
|
|
%strong Visibility level:
|
|
|
|
.visibility-levels
|
|
|
|
- Project.visibility_levels.each do |label, level|
|
|
|
|
.checkbox
|
|
|
|
%label
|
|
|
|
= check_box_tag 'visibility_levels[]', level, params[:visibility_levels].present? && params[:visibility_levels].include?(level.to_s)
|
|
|
|
%span.descr
|
|
|
|
= visibility_level_icon(level)
|
|
|
|
= label
|
|
|
|
%hr
|
|
|
|
= hidden_field_tag :sort, params[:sort]
|
2015-04-26 12:48:37 +05:30
|
|
|
= button_tag "Search", class: "btn submit btn-primary"
|
|
|
|
= link_to "Reset", admin_namespaces_projects_path, class: "btn btn-cancel"
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
%section.col-md-9
|
2014-09-02 18:07:02 +05:30
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Projects (#{@projects.total_count})
|
|
|
|
.panel-head-actions
|
|
|
|
.dropdown.inline
|
2015-04-26 12:48:37 +05:30
|
|
|
%button.dropdown-toggle.btn.btn-sm{type: 'button', 'data-toggle' => 'dropdown'}
|
2014-09-02 18:07:02 +05:30
|
|
|
%span.light sort:
|
|
|
|
- if @sort.present?
|
2015-04-26 12:48:37 +05:30
|
|
|
= sort_options_hash[@sort]
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
2015-04-26 12:48:37 +05:30
|
|
|
= sort_title_recently_created
|
2014-09-02 18:07:02 +05:30
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_recently_created) do
|
|
|
|
= sort_title_recently_created
|
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_oldest_created) do
|
|
|
|
= sort_title_oldest_created
|
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_recently_updated) do
|
|
|
|
= sort_title_recently_updated
|
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_oldest_updated) do
|
|
|
|
= sort_title_oldest_updated
|
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_largest_repo) do
|
|
|
|
= sort_title_largest_repo
|
|
|
|
= link_to 'New Project', new_project_path, class: "btn btn-sm btn-success"
|
2014-09-02 18:07:02 +05:30
|
|
|
%ul.well-list
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
|
|
|
.list-item-name
|
|
|
|
%span{ class: visibility_level_color(project.visibility_level) }
|
|
|
|
= visibility_level_icon(project.visibility_level)
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project]
|
2014-09-02 18:07:02 +05:30
|
|
|
.pull-right
|
|
|
|
%span.label.label-gray
|
|
|
|
= repository_size(project)
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-sm"
|
|
|
|
= link_to 'Destroy', [project.namespace.becomes(Namespace), project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-sm btn-remove"
|
2014-09-02 18:07:02 +05:30
|
|
|
- if @projects.blank?
|
|
|
|
.nothing-here-block 0 projects matches
|
|
|
|
= paginate @projects, theme: "gitlab"
|