Commit 8b65d069cce294ddc3450862e8066b1dbf6695da

Authored by Dmitriy Zaporozhets
1 parent 4d9bdab0

Restyle admin -> groups page

Showing 1 changed file with 35 additions and 24 deletions   Show diff stats
app/views/admin/groups/index.html.haml
1 %h3.page_title 1 %h3.page_title
2 - Groups 2 + Groups (#{@groups.total_count})
3 %small 3 %small
4 allows you to keep projects organized. 4 allows you to keep projects organized.
5 Use groups for uniting related projects. 5 Use groups for uniting related projects.
@@ -7,31 +7,42 @@ @@ -7,31 +7,42 @@
7 = link_to 'New Group', new_admin_group_path, class: "btn btn-small pull-right" 7 = link_to 'New Group', new_admin_group_path, class: "btn btn-small pull-right"
8 %br 8 %br
9 = form_tag admin_groups_path, method: :get, class: 'form-inline' do 9 = form_tag admin_groups_path, method: :get, class: 'form-inline' do
10 - = text_field_tag :name, params[:name], class: "xlarge" 10 + = text_field_tag :name, params[:name], class: "span6"
11 = submit_tag "Search", class: "btn submit btn-primary" 11 = submit_tag "Search", class: "btn submit btn-primary"
12 12
13 -%table  
14 - %thead  
15 - %tr  
16 - %th  
17 - Name  
18 - %i.icon-sort-down  
19 - %th Description  
20 - %th Path  
21 - %th Projects  
22 - %th Owner  
23 - %th.cred Danger Zone! 13 +%hr
24 14
  15 +%ul.bordered-list
25 - @groups.each do |group| 16 - @groups.each do |group|
26 - %tr  
27 - %td  
28 - %strong= link_to group.name, [:admin, group]  
29 - %td= truncate group.description  
30 - %td= group.path  
31 - %td= group.projects.count  
32 - %td  
33 - = link_to group.owner_name, admin_user_path(group.owner)  
34 - %td.bgred  
35 - = link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"  
36 - = link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove" 17 + %li
  18 + .clearfix
  19 + .pull-right.prepend-top-10
  20 + = link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"
  21 + = link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
  22 +
  23 + %h4
  24 + = link_to [:admin, group] do
  25 + = group.name
  26 +
  27 + →
  28 + %span.monospace
  29 + %i.icon-folder-close
  30 + %strong #{group.path}/
  31 +
  32 + .clearfix.light.append-bottom-10
  33 + %span
  34 + %b Owner:
  35 + - if group.owner
  36 + = link_to group.owner_name, admin_user_path(group.owner)
  37 + - else
  38 + (deleted)
  39 + \|
  40 + %span
  41 + %b Projects:
  42 + %span.badge= group.projects.count
  43 +
  44 + .clearfix
  45 + %p
  46 + = truncate group.description, length: 150
  47 +
37 = paginate @groups, theme: "gitlab" 48 = paginate @groups, theme: "gitlab"