summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-06 21:48:28 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-06 21:48:28 +0300
commit8b65d069cce294ddc3450862e8066b1dbf6695da (patch)
tree16b7b6959a0417d4c961e3d40dc8cfc30342b15e
parent4d9bdab00501e01cc82a74ecfc4e7895421a5c2c (diff)
downloadgitlab-ce-8b65d069cce294ddc3450862e8066b1dbf6695da.tar.gz
Restyle admin -> groups page
-rw-r--r--app/views/admin/groups/index.html.haml59
1 files changed, 35 insertions, 24 deletions
diff --git a/app/views/admin/groups/index.html.haml b/app/views/admin/groups/index.html.haml
index 08d99411bfc..d880ff61c9b 100644
--- a/app/views/admin/groups/index.html.haml
+++ b/app/views/admin/groups/index.html.haml
@@ -1,5 +1,5 @@
%h3.page_title
- Groups
+ Groups (#{@groups.total_count})
%small
allows you to keep projects organized.
Use groups for uniting related projects.
@@ -7,31 +7,42 @@
= link_to 'New Group', new_admin_group_path, class: "btn btn-small pull-right"
%br
= form_tag admin_groups_path, method: :get, class: 'form-inline' do
- = text_field_tag :name, params[:name], class: "xlarge"
+ = text_field_tag :name, params[:name], class: "span6"
= submit_tag "Search", class: "btn submit btn-primary"
-%table
- %thead
- %tr
- %th
- Name
- %i.icon-sort-down
- %th Description
- %th Path
- %th Projects
- %th Owner
- %th.cred Danger Zone!
+%hr
+%ul.bordered-list
- @groups.each do |group|
- %tr
- %td
- %strong= link_to group.name, [:admin, group]
- %td= truncate group.description
- %td= group.path
- %td= group.projects.count
- %td
- = link_to group.owner_name, admin_user_path(group.owner)
- %td.bgred
- = link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"
- = link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
+ %li
+ .clearfix
+ .pull-right.prepend-top-10
+ = link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"
+ = link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
+
+ %h4
+ = link_to [:admin, group] do
+ = group.name
+
+ &rarr;
+ %span.monospace
+ %i.icon-folder-close
+ %strong #{group.path}/
+
+ .clearfix.light.append-bottom-10
+ %span
+ %b Owner:
+ - if group.owner
+ = link_to group.owner_name, admin_user_path(group.owner)
+ - else
+ (deleted)
+ \|
+ %span
+ %b Projects:
+ %span.badge= group.projects.count
+
+ .clearfix
+ %p
+ = truncate group.description, length: 150
+
= paginate @groups, theme: "gitlab"