BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b6a609ed
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
131 additions
and
126 deletions
+131
-126
admin.scss
app/assets/stylesheets/sections/admin.scss
+5
-1
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,136 +3,137 @@
...
@@ -3,136 +3,137 @@
%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
.col-sm-4
.row
.light-well
.col-sm-4
%h4
Projects
.light-well
.data
%h4
Projects
=
link_to
admin_projects_path
do
.data
%h1
=
Project
.
count
=
link_to
admin_projects_path
do
%hr
%h1
=
Project
.
count
=
link_to
'New Project'
,
new_project_path
,
class:
"btn btn-new"
%hr
.col-sm-4
=
link_to
'New Project'
,
new_project_path
,
class:
"btn btn-new"
.light-well
.col-sm-4
%h4
Users
.light-well
.data
%h4
Users
=
link_to
admin_users_path
do
.data
%h1
=
User
.
count
=
link_to
admin_users_path
do
%hr
%h1
=
User
.
count
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
%hr
.col-sm-4
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
.light-well
.col-sm-4
%h4
Groups
.light-well
.data
%h4
Groups
=
link_to
admin_groups_path
do
.data
%h1
=
Group
.
count
=
link_to
admin_groups_path
do
%hr
%h1
=
Group
.
count
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
%hr
=
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
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
],
class:
'str-truncated'
%span
.light.pull-right
#{
time_ago_with_tooltip
(
project
.
created_at
)
}
.col-md-4
%h4
Latest users
%hr
-
@users
.
each
do
|
user
|
%p
=
link_to
[
:admin
,
user
],
class:
'str-truncated'
do
=
user
.
name
%span
.light.pull-right
#{
time_ago_with_tooltip
(
user
.
created_at
)
}
.col-md-4
%h4
Latest groups
%hr
-
@groups
.
each
do
|
group
|
%p
=
link_to
[
:admin
,
group
],
class:
'str-truncated'
do
=
group
.
name
%span
.light.pull-right
#{
time_ago_with_tooltip
(
group
.
created_at
)
}
%br
.row
.col-md-4
%h4
Stats
%hr
%p
%p
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
]
Forks
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
project
.
created_at
)
}
=
ForkedProjectLink
.
count
.col-md-4
%h4
Latest users
%hr
-
@users
.
each
do
|
user
|
%p
%p
=
link_to
[
:admin
,
user
]
do
Issues
=
user
.
name
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
user
.
created_at
)
}
=
Issue
.
count
.col-md-4
%h4
Latest groups
%hr
-
@groups
.
each
do
|
group
|
%p
%p
=
link_to
[
:admin
,
group
]
do
Merge Requests
=
group
.
name
%span
.light.pull-right
%span
.light.pull-right
#{
time_ago_with_tooltip
(
group
.
created_at
)
}
=
MergeRequest
.
count
%p
%br
Notes
.row
%span
.light.pull-right
.col-md-4
=
Note
.
count
%h4
Stats
%p
%hr
Snippets
%p
%span
.light.pull-right
Forks
=
Snippet
.
count
%span
.light.pull-right
%p
=
ForkedProjectLink
.
count
SSH Keys
%p
%span
.light.pull-right
Issues
=
Key
.
count
%span
.light.pull-right
%p
=
Issue
.
count
Milestones
%p
%span
.light.pull-right
Merge Requests
=
Milestone
.
count
%span
.light.pull-right
.col-md-4
=
MergeRequest
.
count
%h4
%p
Features
Notes
%hr
%span
.light.pull-right
%p
=
Note
.
count
Sign up
%p
%span
.light.pull-right
Snippets
=
boolean_to_icon
gitlab_config
.
signup_enabled
%span
.light.pull-right
%p
=
Snippet
.
count
LDAP
%p
%span
.light.pull-right
SSH Keys
=
boolean_to_icon
Gitlab
.
config
.
ldap
.
enabled
%span
.light.pull-right
%p
=
Key
.
count
Gravatar
%p
%span
.light.pull-right
Milestones
=
boolean_to_icon
Gitlab
.
config
.
gravatar
.
enabled
%span
.light.pull-right
%p
=
Milestone
.
count
OmniAuth
.col-md-4
%span
.light.pull-right
%h4
=
boolean_to_icon
Gitlab
.
config
.
omniauth
.
enabled
Features
.col-md-4
%hr
%h4
Components
%p
%hr
Sign up
%p
%span
.light.pull-right
GitLab
=
boolean_to_icon
gitlab_config
.
signup_enabled
%span
.pull-right
%p
=
Gitlab
::
VERSION
LDAP
%p
%span
.light.pull-right
GitLab Shell
=
boolean_to_icon
Gitlab
.
config
.
ldap
.
enabled
%span
.pull-right
%p
=
Gitlab
::
Shell
.
new
.
version
Gravatar
%p
%span
.light.pull-right
GitLab API
=
boolean_to_icon
Gitlab
.
config
.
gravatar
.
enabled
%span
.pull-right
%p
=
API
::
API
::
version
OmniAuth
%p
%span
.light.pull-right
Ruby
=
boolean_to_icon
Gitlab
.
config
.
omniauth
.
enabled
%span
.pull-right
.col-md-4
#{
RUBY_VERSION
}
p
#{
RUBY_PATCHLEVEL
}
%h4
Components
%hr
%p
GitLab
%span
.pull-right
=
Gitlab
::
VERSION
%p
GitLab Shell
%span
.pull-right
=
Gitlab
::
Shell
.
new
.
version
%p
GitLab API
%span
.pull-right
=
API
::
API
::
version
%p
Ruby
%span
.pull-right
#{
RUBY_VERSION
}
p
#{
RUBY_PATCHLEVEL
}
%p
%p
Rails
Rails
%span
.pull-right
%span
.pull-right
#{
Rails
::
VERSION
::
STRING
}
#{
Rails
::
VERSION
::
STRING
}
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