index.html.haml 2.3 KB
Newer Older
1
.row
D
Dmitriy Zaporozhets 已提交
2
  .col-md-4
3
    .admin-filter
4
      = form_tag admin_projects_path, method: :get, class: '' do
D
Dmitriy Zaporozhets 已提交
5
        .form-group
6 7
          = label_tag :name, 'Name:'
          = text_field_tag :name, params[:name], class: "form-control"
8

D
Dmitriy Zaporozhets 已提交
9
        .form-group
10 11
          = label_tag :owner_id, 'Owner:'
          %div
12
            = users_select_tag :owner_id, selected: params[:owner_id], class: 'input-large input-clamp'
13 14 15 16 17 18 19 20 21 22
        .checkbox
          = label_tag :with_push, 'Not empty'
          = check_box_tag :with_push, 1, params[:with_push]
           
          %span.light Projects with push events
        .checkbox
          = label_tag :abandoned, 'Abandoned'
          = check_box_tag :abandoned, 1, params[:abandoned]
           
          %span.light No activity over 6 month
23

24 25 26 27 28 29 30 31 32 33
        %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
34
        .form-actions
D
Dmitriy Zaporozhets 已提交
35
          = submit_tag "Search", class: "btn submit btn-primary"
36
          = link_to "Reset", admin_projects_path, class: "btn"
37

D
Dmitriy Zaporozhets 已提交
38
  .col-md-8
39
    .ui-box
40
      .title
41
        Projects (#{@projects.total_count})
42
        .pull-right
43
          = link_to 'New Project', new_project_path, class: "btn btn-new"
44 45 46
      %ul.well-list
        - @projects.each do |project|
          %li
47 48 49 50
            .list-item-name
              %span{ class: visibility_level_color(project.visibility_level) }
                = visibility_level_icon(project.visibility_level)
              = link_to project.name_with_namespace, [:admin, project]
51
            .pull-right
52 53
              %span.label.label-gray
                = repository_size(project)
54
              = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
55
              = link_to 'Destroy', [project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-small btn-remove"
56
        - if @projects.blank?
D
Dmitriy Zaporozhets 已提交
57
          .nothing-here-block 0 projects matches
58
    = paginate @projects, theme: "gitlab"