Read about our upcoming Code of Conduct on this issue

index.html.haml 2.31 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
.row
  .span4
    .admin-filter
      = form_tag admin_projects_path, method: :get, class: 'form-inline' do
        .control-group
          = label_tag :name, 'Name:', class: 'control-label'
          .controls
            = text_field_tag :name, params[:name], class: "span2"

        .control-group
11
          = label_tag :owner_id, 'Owner:', class: 'control-label'
12
          .controls
13
14
15
16
17
18
19
20
21
            = users_select_tag :owner_id, selected: params[:owner_id], class: 'input-large input-clamp'
        .control-group.visibility-levels
          = label_tag :visibility_level, 'Visibility Levels', class: 'control-label'
          - Project.visibility_levels.each do |label, level|
            .controls
              = check_box_tag 'visibility_levels[]', level, params[:visibility_levels].present? && params[:visibility_levels].include?(level.to_s)
              %span.descr
                = visibility_level_icon(level)
                = label
22
23
24
25
26
27
28
29
30
31
32
33
34
35
        .control-group
          = label_tag :with_push, 'Not empty', class: 'control-label'
          .controls
            = check_box_tag :with_push, 1, params[:with_push]
             
            %span.light Projects with push events
        .control-group
          = label_tag :abandoned, 'Abandoned', class: 'control-label'
          .controls
            = check_box_tag :abandoned, 1, params[:abandoned]
             
            %span.light No activity over 6 month


36
37

        .form-actions
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
38
          = submit_tag "Search", class: "btn submit btn-primary"
39
40
41
          = link_to "Reset", admin_projects_path, class: "btn"
  .span8
    .ui-box
42
      .title
43
        Projects (#{@projects.total_count})
44
        .pull-right
45
          = link_to 'New Project', new_project_path, class: "btn btn-new"
46
47
48
      %ul.well-list
        - @projects.each do |project|
          %li
49
            = visibility_level_icon(project.visibility_level)
50
            = link_to project.name_with_namespace, [:admin, project]
51
            .pull-right
52
              = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
53
              = link_to 'Destroy', [project], confirm: remove_project_message(project), method: :delete, class: "btn btn-small btn-remove"
54
55
        - if @projects.blank?
          %p.nothing_here_message 0 projects matches
56
    = paginate @projects, theme: "gitlab"