Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b5dd9e67
Commit
b5dd9e67
authored
Jan 24, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make a team and group boxes smaller on dashboard
parent
ca752e64
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
app/models/user_team_user_relationship.rb
app/models/user_team_user_relationship.rb
+4
-0
app/views/dashboard/_groups.html.haml
app/views/dashboard/_groups.html.haml
+4
-6
app/views/dashboard/_teams.html.haml
app/views/dashboard/_teams.html.haml
+7
-8
No files found.
app/models/user_team_user_relationship.rb
View file @
b5dd9e67
...
@@ -12,4 +12,8 @@ class UserTeamUserRelationship < ActiveRecord::Base
...
@@ -12,4 +12,8 @@ class UserTeamUserRelationship < ActiveRecord::Base
def
user_name
def
user_name
user
.
name
user
.
name
end
end
def
access_human
UsersProject
.
access_roles
.
invert
[
permission
]
end
end
end
app/views/dashboard/_groups.html.haml
View file @
b5dd9e67
.
groups_
box
.
ui-
box
%h5
.title
%h5
.title
Groups
Groups
%small
%small
...
@@ -13,8 +13,6 @@
...
@@ -13,8 +13,6 @@
%li
%li
=
link_to
group_path
(
id:
group
.
path
),
class:
dom_class
(
group
)
do
=
link_to
group_path
(
id:
group
.
path
),
class:
dom_class
(
group
)
do
%strong
.well-title
=
truncate
(
group
.
name
,
length:
35
)
%strong
.well-title
=
truncate
(
group
.
name
,
length:
35
)
%span
.arrow
%span
.right.light
→
-
if
group
.
owner
==
current_user
%span
.last_activity
%i
.icon-wrench
%strong
Projects:
%span
=
current_user
.
authorized_projects
.
where
(
namespace_id:
group
.
id
).
count
app/views/dashboard/_teams.html.haml
View file @
b5dd9e67
.
teams_
box
.
ui-
box
%h5
.title
%h5
.title
Teams
Teams
%small
%small
...
@@ -12,10 +12,9 @@
...
@@ -12,10 +12,9 @@
%li
%li
=
link_to
team_path
(
id:
team
.
path
),
class:
dom_class
(
team
)
do
=
link_to
team_path
(
id:
team
.
path
),
class:
dom_class
(
team
)
do
%strong
.well-title
=
truncate
(
team
.
name
,
length:
35
)
%strong
.well-title
=
truncate
(
team
.
name
,
length:
35
)
%span
.arrow
%span
.right.light
→
-
if
team
.
owner
==
current_user
%span
.last_activity
%i
.icon-wrench
%strong
Projects:
-
tm
=
current_user
.
user_team_user_relationships
.
find_by_user_team_id
(
team
.
id
)
%span
=
"
#{
team
.
projects
.
count
}
, "
-
if
tm
%strong
Members:
=
tm
.
access_human
%span
=
team
.
members
.
count
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment