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
Jérome Perrin
gitlab-ce
Commits
b6a609ed
Commit
b6a609ed
authored
Feb 15, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Truncate long names for admin dashboard with css
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
5cf5c177
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
131 additions
and
126 deletions
+131
-126
app/assets/stylesheets/sections/admin.scss
app/assets/stylesheets/sections/admin.scss
+5
-1
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+126
-125
No files found.
app/assets/stylesheets/sections/admin.scss
View file @
b6a609ed
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* Admin area
* Admin area
*
*
*/
*/
.admin
_dash
{
.admin
-dashboard
{
.data
{
.data
{
a
{
a
{
h1
{
h1
{
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
}
}
}
}
}
}
.str-truncated
{
max-width
:
60%
;
}
}
}
.admin-filter
form
{
.admin-filter
form
{
...
...
app/views/admin/dashboard/index.html.haml
View file @
b6a609ed
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
%p
.light
%p
.light
You can manage projects, users and other GitLab data from here.
You can manage projects, users and other GitLab data from here.
%hr
%hr
.admin_dash.row
.admin-dashboard
.row
.col-sm-4
.col-sm-4
.light-well
.light-well
%h4
Projects
%h4
Projects
...
@@ -29,13 +30,13 @@
...
@@ -29,13 +30,13 @@
%hr
%hr
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
.row.prepend-top-10
.row.prepend-top-10
.col-md-4
.col-md-4
%h4
Latest projects
%h4
Latest projects
%hr
%hr
-
@projects
.
each
do
|
project
|
-
@projects
.
each
do
|
project
|
%p
%p
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
]
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
],
class:
'str-truncated'
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
project
.
created_at
)
}
#{
time_ago_with_tooltip
(
project
.
created_at
)
}
...
@@ -44,7 +45,7 @@
...
@@ -44,7 +45,7 @@
%hr
%hr
-
@users
.
each
do
|
user
|
-
@users
.
each
do
|
user
|
%p
%p
=
link_to
[
:admin
,
user
]
do
=
link_to
[
:admin
,
user
],
class:
'str-truncated'
do
=
user
.
name
=
user
.
name
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
user
.
created_at
)
}
#{
time_ago_with_tooltip
(
user
.
created_at
)
}
...
@@ -54,13 +55,13 @@
...
@@ -54,13 +55,13 @@
%hr
%hr
-
@groups
.
each
do
|
group
|
-
@groups
.
each
do
|
group
|
%p
%p
=
link_to
[
:admin
,
group
]
do
=
link_to
[
:admin
,
group
],
class:
'str-truncated'
do
=
group
.
name
=
group
.
name
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
group
.
created_at
)
}
#{
time_ago_with_tooltip
(
group
.
created_at
)
}
%br
%br
.row
.row
.col-md-4
.col-md-4
%h4
Stats
%h4
Stats
%hr
%hr
...
...
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