summaryrefslogtreecommitdiff
path: root/app/views/dashboard
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-24 11:43:09 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-24 22:31:49 +0200
commitb5dd9e6775e2da52a9efb07bbeedd7cd56230c1d (patch)
tree887023f5da19e80ff1f6062e6862601af0921f4f /app/views/dashboard
parentca752e64fbf1cd03ff3eff1ada80a1cfbcd9b2b4 (diff)
downloadgitlab-ce-b5dd9e6775e2da52a9efb07bbeedd7cd56230c1d.tar.gz
Make a team and group boxes smaller on dashboard
Diffstat (limited to 'app/views/dashboard')
-rw-r--r--app/views/dashboard/_groups.html.haml10
-rw-r--r--app/views/dashboard/_teams.html.haml15
2 files changed, 11 insertions, 14 deletions
diff --git a/app/views/dashboard/_groups.html.haml b/app/views/dashboard/_groups.html.haml
index dc50bffda80..f9774669d9a 100644
--- a/app/views/dashboard/_groups.html.haml
+++ b/app/views/dashboard/_groups.html.haml
@@ -1,4 +1,4 @@
-.groups_box
+.ui-box
%h5.title
Groups
%small
@@ -13,8 +13,6 @@
%li
= link_to group_path(id: group.path), class: dom_class(group) do
%strong.well-title= truncate(group.name, length: 35)
- %span.arrow
- &rarr;
- %span.last_activity
- %strong Projects:
- %span= current_user.authorized_projects.where(namespace_id: group.id).count
+ %span.right.light
+ - if group.owner == current_user
+ %i.icon-wrench
diff --git a/app/views/dashboard/_teams.html.haml b/app/views/dashboard/_teams.html.haml
index b047acf8d4a..7912175b760 100644
--- a/app/views/dashboard/_teams.html.haml
+++ b/app/views/dashboard/_teams.html.haml
@@ -1,4 +1,4 @@
-.teams_box
+.ui-box
%h5.title
Teams
%small
@@ -12,10 +12,9 @@
%li
= link_to team_path(id: team.path), class: dom_class(team) do
%strong.well-title= truncate(team.name, length: 35)
- %span.arrow
- &rarr;
- %span.last_activity
- %strong Projects:
- %span= "#{team.projects.count}, "
- %strong Members:
- %span= team.members.count
+ %span.right.light
+ - if team.owner == current_user
+ %i.icon-wrench
+ - tm = current_user.user_team_user_relationships.find_by_user_team_id(team.id)
+ - if tm
+ = tm.access_human