diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-10 16:26:11 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-10 16:26:11 +0300 |
commit | 4f953f6f7f0099698a58f54af2a24c5b631fd314 (patch) | |
tree | cd8c3a3d6fba4cad8d852c862c594a618d6f4d44 /app/views/admin | |
parent | c5f56ee8a06e305265d78cdb847f3dc87bd7e6f2 (diff) | |
download | gitlab-ce-4f953f6f7f0099698a58f54af2a24c5b631fd314.tar.gz |
Better styling for admin:teams:index page
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/dashboard/index.html.haml | 8 | ||||
-rw-r--r-- | app/views/admin/teams/index.html.haml | 65 |
2 files changed, 43 insertions, 30 deletions
diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml index d3c938bb8f2..a69b26073f0 100644 --- a/app/views/admin/dashboard/index.html.haml +++ b/app/views/admin/dashboard/index.html.haml @@ -50,6 +50,14 @@ %h4 Stats %hr %p + Teams + %span.light.pull-right + = UserTeam.count + %p + Forks + %span.light.pull-right + = ForkedProjectLink.count + %p Issues %span.light.pull-right = Issue.count diff --git a/app/views/admin/teams/index.html.haml b/app/views/admin/teams/index.html.haml index cf24ed5398f..05ddc3cee89 100644 --- a/app/views/admin/teams/index.html.haml +++ b/app/views/admin/teams/index.html.haml @@ -1,43 +1,48 @@ %h3.page_title - Teams + Teams (#{@teams.total_count}) %small allow you to organize groups of people that have a common focus. Use teams to simplify the process of assigning roles to groups of people. = link_to 'New Team', new_admin_team_path, class: "btn btn-small pull-right" - %br +%br = form_tag admin_teams_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 Members - %th Owner - %th.cred Danger Zone! +%hr +%ul.bordered-list - @teams.each do |team| - %tr - %td - %strong= link_to team.name, admin_team_path(team) - %td= truncate team.description - %td= team.path - %td= team.projects.count - %td= team.members.count - %td - - if team.owner - = link_to team.owner.name, admin_user_path(team.owner) - - else - (deleted) - %td.bgred - = link_to 'Edit', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn btn-small" - = link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove" + %li + .clearfix + .pull-right.prepend-top-10 + = link_to 'Edit', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn btn-small" + = link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove" + + %h4 + = link_to admin_team_path(team) do + %i.icon-group + = team.name + + .clearfix.light.append-bottom-10 + %span + %b Owner: + - if team.owner + = link_to team.owner.name, admin_user_path(team.owner) + - else + (deleted) + \| + %span + %b Users: + %span.badge= team.members.count + \| + %span + %b Projects: + %span.badge= team.projects.count + + .clearfix + %p + = truncate team.description, length: 150 = paginate @teams, theme: "gitlab" |