Commit b6a609ed authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Truncate long names for admin dashboard with css

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 5cf5c177
......@@ -2,7 +2,7 @@
* Admin area
*
*/
.admin_dash {
.admin-dashboard {
.data {
a {
h1 {
......@@ -14,6 +14,10 @@
}
}
}
.str-truncated {
max-width: 60%;
}
}
.admin-filter form {
......
......@@ -3,7 +3,8 @@
%p.light
You can manage projects, users and other GitLab data from here.
%hr
.admin_dash.row
.admin-dashboard
.row
.col-sm-4
.light-well
%h4 Projects
......@@ -29,13 +30,13 @@
%hr
= link_to 'New Group', new_admin_group_path, class: "btn btn-new"
.row.prepend-top-10
.row.prepend-top-10
.col-md-4
%h4 Latest projects
%hr
- @projects.each do |project|
%p
= link_to project.name_with_namespace, [:admin, project]
= link_to project.name_with_namespace, [:admin, project], class: 'str-truncated'
%span.light.pull-right
#{time_ago_with_tooltip(project.created_at)}
......@@ -44,7 +45,7 @@
%hr
- @users.each do |user|
%p
= link_to [:admin, user] do
= link_to [:admin, user], class: 'str-truncated' do
= user.name
%span.light.pull-right
#{time_ago_with_tooltip(user.created_at)}
......@@ -54,13 +55,13 @@
%hr
- @groups.each do |group|
%p
= link_to [:admin, group] do
= link_to [:admin, group], class: 'str-truncated' do
= group.name
%span.light.pull-right
#{time_ago_with_tooltip(group.created_at)}
%br
.row
%br
.row
.col-md-4
%h4 Stats
%hr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment