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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
922a164d
Commit
922a164d
authored
Jun 14, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sub links to overview
parent
736ba42b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
399 additions
and
379 deletions
+399
-379
app/views/admin/dashboard/_head.html.haml
app/views/admin/dashboard/_head.html.haml
+18
-0
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+152
-148
app/views/admin/groups/index.html.haml
app/views/admin/groups/index.html.haml
+38
-34
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+88
-85
app/views/admin/users/index.html.haml
app/views/admin/users/index.html.haml
+101
-98
app/views/layouts/nav/_admin.html.haml
app/views/layouts/nav/_admin.html.haml
+2
-14
No files found.
app/views/admin/dashboard/_head.html.haml
0 → 100644
View file @
922a164d
%ul
.nav-links.sub-nav
%div
{
class:
(
container_class
)
}
=
nav_link
(
controller: :dashboard
,
html_options:
{
class:
'home'
})
do
=
link_to
admin_root_path
,
title:
'Overview'
do
%span
Overview
=
nav_link
(
controller:
[
:admin
,
:projects
])
do
=
link_to
admin_namespaces_projects_path
,
title:
'Projects'
do
%span
Projects
=
nav_link
(
controller: :users
)
do
=
link_to
admin_users_path
,
title:
'Users'
do
%span
Users
=
nav_link
(
controller: :groups
)
do
=
link_to
admin_groups_path
,
title:
'Groups'
do
%span
Groups
app/views/admin/dashboard/index.html.haml
View file @
922a164d
.admin-dashboard.prepend-top-default
.row
.col-md-4
%h4
Statistics
%hr
%p
Forks
%span
.light.pull-right
=
number_with_delimiter
(
ForkedProjectLink
.
count
)
%p
Issues
%span
.light.pull-right
=
number_with_delimiter
(
Issue
.
count
)
%p
Merge Requests
%span
.light.pull-right
=
number_with_delimiter
(
MergeRequest
.
count
)
%p
Notes
%span
.light.pull-right
=
number_with_delimiter
(
Note
.
count
)
%p
Snippets
%span
.light.pull-right
=
number_with_delimiter
(
Snippet
.
count
)
%p
SSH Keys
%span
.light.pull-right
=
number_with_delimiter
(
Key
.
count
)
%p
Milestones
%span
.light.pull-right
=
number_with_delimiter
(
Milestone
.
count
)
%p
Active Users
%span
.light.pull-right
=
number_with_delimiter
(
User
.
active
.
count
)
.col-md-4
%h4
Features
%hr
%p
Sign up
%span
.light.pull-right
=
boolean_to_icon
signup_enabled?
%p
LDAP
%span
.light.pull-right
=
boolean_to_icon
Gitlab
.
config
.
ldap
.
enabled
%p
Gravatar
%span
.light.pull-right
=
boolean_to_icon
gravatar_enabled?
%p
OmniAuth
%span
.light.pull-right
=
boolean_to_icon
Gitlab
.
config
.
omniauth
.
enabled
%p
Reply by email
%span
.light.pull-right
=
boolean_to_icon
Gitlab
::
IncomingEmail
.
enabled?
.col-md-4
%h4
Components
-
if
current_application_settings
.
version_check_enabled
.pull-right
=
version_status_badge
-
@no_container
=
true
=
render
"admin/dashboard/head"
%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
Git
%span
.pull-right
=
Gitlab
::
Git
.
version
%p
Ruby
%span
.pull-right
#{
RUBY_VERSION
}
p
#{
RUBY_PATCHLEVEL
}
%p
Rails
%span
.pull-right
#{
Rails
::
VERSION
::
STRING
}
%p
=
Gitlab
::
Database
.
adapter_name
%span
.pull-right
=
Gitlab
::
Database
.
version
%hr
.row
.col-sm-4
.light-well
%h4
Projects
.data
=
link_to
admin_namespaces_projects_path
do
%h1
=
number_with_delimiter
(
Project
.
count
)
%hr
=
link_to
(
'New Project'
,
new_project_path
,
class:
"btn btn-new"
)
.col-sm-4
.light-well
%h4
Users
.data
=
link_to
admin_users_path
do
%h1
=
number_with_delimiter
(
User
.
count
)
%hr
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
.col-sm-4
.light-well
%h4
Groups
.data
=
link_to
admin_groups_path
do
%h1
=
number_with_delimiter
(
Group
.
count
)
%hr
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
.row.prepend-top-10
.col-md-4
%h4
Latest projects
%hr
-
@projects
.
each
do
|
project
|
%div
{
class:
(
container_class
)
}
.admin-dashboard.prepend-top-default
.row
.col-md-4
%h4
Statistics
%hr
%p
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
],
class:
'str-truncated'
Forks
%span
.light.pull-right
#{
time_ago_with_tooltip
(
project
.
created_at
)
}
.col-md-4
%h4
Latest users
%hr
-
@users
.
each
do
|
user
|
=
number_with_delimiter
(
ForkedProjectLink
.
count
)
%p
=
link_to
[
:admin
,
user
],
class:
'str-truncated'
do
=
user
.
name
Issues
%span
.light.pull-right
#{
time_ago_with_tooltip
(
user
.
created_at
)
}
.col-md-4
%h4
Latest groups
%hr
-
@groups
.
each
do
|
group
|
=
number_with_delimiter
(
Issue
.
count
)
%p
Merge Requests
%span
.light.pull-right
=
number_with_delimiter
(
MergeRequest
.
count
)
%p
Notes
%span
.light.pull-right
=
number_with_delimiter
(
Note
.
count
)
%p
Snippets
%span
.light.pull-right
=
number_with_delimiter
(
Snippet
.
count
)
%p
SSH Keys
%span
.light.pull-right
=
number_with_delimiter
(
Key
.
count
)
%p
Milestones
%span
.light.pull-right
=
number_with_delimiter
(
Milestone
.
count
)
%p
Active Users
%span
.light.pull-right
=
number_with_delimiter
(
User
.
active
.
count
)
.col-md-4
%h4
Features
%hr
%p
Sign up
%span
.light.pull-right
=
boolean_to_icon
signup_enabled?
%p
=
link_to
[
:admin
,
group
],
class:
'str-truncated'
do
=
group
.
name
LDAP
%span
.light.pull-right
#{
time_ago_with_tooltip
(
group
.
created_at
)
}
=
boolean_to_icon
Gitlab
.
config
.
ldap
.
enabled
%p
Gravatar
%span
.light.pull-right
=
boolean_to_icon
gravatar_enabled?
%p
OmniAuth
%span
.light.pull-right
=
boolean_to_icon
Gitlab
.
config
.
omniauth
.
enabled
%p
Reply by email
%span
.light.pull-right
=
boolean_to_icon
Gitlab
::
IncomingEmail
.
enabled?
.col-md-4
%h4
Components
-
if
current_application_settings
.
version_check_enabled
.pull-right
=
version_status_badge
%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
Git
%span
.pull-right
=
Gitlab
::
Git
.
version
%p
Ruby
%span
.pull-right
#{
RUBY_VERSION
}
p
#{
RUBY_PATCHLEVEL
}
%p
Rails
%span
.pull-right
#{
Rails
::
VERSION
::
STRING
}
%p
=
Gitlab
::
Database
.
adapter_name
%span
.pull-right
=
Gitlab
::
Database
.
version
%hr
.row
.col-sm-4
.light-well
%h4
Projects
.data
=
link_to
admin_namespaces_projects_path
do
%h1
=
number_with_delimiter
(
Project
.
count
)
%hr
=
link_to
(
'New Project'
,
new_project_path
,
class:
"btn btn-new"
)
.col-sm-4
.light-well
%h4
Users
.data
=
link_to
admin_users_path
do
%h1
=
number_with_delimiter
(
User
.
count
)
%hr
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
.col-sm-4
.light-well
%h4
Groups
.data
=
link_to
admin_groups_path
do
%h1
=
number_with_delimiter
(
Group
.
count
)
%hr
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
.row.prepend-top-10
.col-md-4
%h4
Latest projects
%hr
-
@projects
.
each
do
|
project
|
%p
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
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
)
}
app/views/admin/groups/index.html.haml
View file @
922a164d
-
@no_container
=
true
-
page_title
"Groups"
%h3
.page-title
Groups (
#{
number_with_delimiter
(
@groups
.
total_count
)
}
)
=
render
"admin/dashboard/head"
%
p
.light
Group allows you to keep projects organized.
Use groups for uniting related projects.
%
div
{
class:
(
container_class
)
}
%h3
.page-title
Groups (
#{
number_with_delimiter
(
@groups
.
total_count
)
}
)
.top-area
.nav-search
=
form_tag
admin_groups_path
,
method: :get
,
class:
'form-inline'
do
=
hidden_field_tag
:sort
,
@sort
=
text_field_tag
:name
,
params
[
:name
],
class:
"form-control"
=
button_tag
"Search"
,
class:
"btn submit btn-primary"
%p
.light
Group allows you to keep projects organized.
Use groups for uniting related projects.
.nav-controls
.dropdown.inline
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%span
.light
-
if
@sort
.
present?
=
sort_options_hash
[
@sort
]
-
else
=
sort_title_recently_created
%b
.caret
%ul
.dropdown-menu
%li
=
link_to
admin_groups_path
(
sort:
sort_value_recently_created
)
do
.top-area
.nav-search
=
form_tag
admin_groups_path
,
method: :get
,
class:
'form-inline'
do
=
hidden_field_tag
:sort
,
@sort
=
text_field_tag
:name
,
params
[
:name
],
class:
"form-control"
=
button_tag
"Search"
,
class:
"btn submit btn-primary"
.nav-controls
.dropdown.inline
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%span
.light
-
if
@sort
.
present?
=
sort_options_hash
[
@sort
]
-
else
=
sort_title_recently_created
=
link_to
admin_groups_path
(
sort:
sort_value_oldest_created
)
do
=
sort_title_oldest_created
=
link_to
admin_groups_path
(
sort:
sort_value_recently_updated
)
do
=
sort_title_recently_updated
=
link_to
admin_groups_path
(
sort:
sort_value_oldest_updated
)
do
=
sort_title_oldest_updated
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
%b
.caret
%ul
.dropdown-menu
%li
=
link_to
admin_groups_path
(
sort:
sort_value_recently_created
)
do
=
sort_title_recently_created
=
link_to
admin_groups_path
(
sort:
sort_value_oldest_created
)
do
=
sort_title_oldest_created
=
link_to
admin_groups_path
(
sort:
sort_value_recently_updated
)
do
=
sort_title_recently_updated
=
link_to
admin_groups_path
(
sort:
sort_value_oldest_updated
)
do
=
sort_title_oldest_updated
=
link_to
'New Group'
,
new_admin_group_path
,
class:
"btn btn-new"
%ul
.content-list
-
@groups
.
each
do
|
group
|
=
render
'group'
,
group:
group
%ul
.content-list
-
@groups
.
each
do
|
group
|
=
render
'group'
,
group:
group
=
paginate
@groups
,
theme:
"gitlab"
=
paginate
@groups
,
theme:
"gitlab"
app/views/admin/projects/index.html.haml
View file @
922a164d
-
@no_container
=
true
-
page_title
"Projects"
=
render
'shared/show_aside'
=
render
"admin/dashboard/head"
.row.prepend-top-default
%aside
.col-md-3
.panel.admin-filter
=
form_tag
admin_namespaces_projects_path
,
method: :get
,
class:
''
do
.form-group
=
label_tag
:name
,
'Name:'
=
text_field_tag
:name
,
params
[
:name
],
class:
"form-control"
%div
{
class:
(
container_class
)
}
.row.prepend-top-default
%aside
.col-md-3
.panel.admin-filter
=
form_tag
admin_namespaces_projects_path
,
method: :get
,
class:
''
do
.form-group
=
label_tag
:name
,
'Name:'
=
text_field_tag
:name
,
params
[
:name
],
class:
"form-control"
.form-group
=
label_tag
:namespace_id
,
"Namespace"
=
namespace_select_tag
:namespace_id
,
selected:
params
[
:namespace_id
],
class:
'input-large'
.form-group
=
label_tag
:namespace_id
,
"Namespace"
=
namespace_select_tag
:namespace_id
,
selected:
params
[
:namespace_id
],
class:
'input-large'
.form-group
%strong
Activity
.checkbox
=
label_tag
:with_push
do
=
check_box_tag
:with_push
,
1
,
params
[
:with_push
]
%span
Projects with push events
.checkbox
=
label_tag
:abandoned
do
=
check_box_tag
:abandoned
,
1
,
params
[
:abandoned
]
%span
No activity over 6 month
.checkbox
=
label_tag
:with_archived
do
=
check_box_tag
:with_archived
,
1
,
params
[
:with_archived
]
%span
Show archived projects
.form-group
%strong
Activity
.checkbox
=
label_tag
:with_push
do
=
check_box_tag
:with_push
,
1
,
params
[
:with_push
]
%span
Projects with push events
.checkbox
=
label_tag
:abandoned
do
=
check_box_tag
:abandoned
,
1
,
params
[
:abandoned
]
%span
No activity over 6 month
.checkbox
=
label_tag
:with_archived
do
=
check_box_tag
:with_archived
,
1
,
params
[
:with_archived
]
%span
Show archived projects
%fieldset
%strong
Visibility level:
.visibility-levels
-
Project
.
visibility_levels
.
each
do
|
label
,
level
|
.checkbox
%label
=
check_box_tag
'visibility_levels[]'
,
level
,
params
[
:visibility_levels
].
present?
&&
params
[
:visibility_levels
].
include?
(
level
.
to_s
)
%span
.descr
=
visibility_level_icon
(
level
)
=
label
%fieldset
%strong
Problems
.checkbox
=
label_tag
:last_repository_check_failed
do
=
check_box_tag
:last_repository_check_failed
,
1
,
params
[
:last_repository_check_failed
]
%span
Last repository check failed
%fieldset
%strong
Visibility level:
.visibility-levels
-
Project
.
visibility_levels
.
each
do
|
label
,
level
|
.checkbox
%label
=
check_box_tag
'visibility_levels[]'
,
level
,
params
[
:visibility_levels
].
present?
&&
params
[
:visibility_levels
].
include?
(
level
.
to_s
)
%span
.descr
=
visibility_level_icon
(
level
)
=
label
%fieldset
%strong
Problems
.checkbox
=
label_tag
:last_repository_check_failed
do
=
check_box_tag
:last_repository_check_failed
,
1
,
params
[
:last_repository_check_failed
]
%span
Last repository check failed
=
hidden_field_tag
:sort
,
params
[
:sort
]
=
button_tag
"Search"
,
class:
"btn submit btn-primary"
=
link_to
"Reset"
,
admin_namespaces_projects_path
,
class:
"btn btn-cancel"
=
hidden_field_tag
:sort
,
params
[
:sort
]
=
button_tag
"Search"
,
class:
"btn submit btn-primary"
=
link_to
"Reset"
,
admin_namespaces_projects_path
,
class:
"btn btn-cancel"
%section
.col-md-9
.panel.panel-default
.panel-heading
Projects (
#{
@projects
.
total_count
}
)
.controls
.dropdown.inline
%button
.dropdown-toggle.btn.btn-sm
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.light
-
if
@sort
.
present?
=
sort_options_hash
[
@sort
]
-
else
=
sort_title_recently_created
%b
.caret
%ul
.dropdown-menu
%li
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_recently_created
)
do
%section
.col-md-9
.panel.panel-default
.panel-heading
Projects (
#{
@projects
.
total_count
}
)
.controls
.dropdown.inline
%button
.dropdown-toggle.btn.btn-sm
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.light
-
if
@sort
.
present?
=
sort_options_hash
[
@sort
]
-
else
=
sort_title_recently_created
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_oldest_created
)
do
=
sort_title_oldest_created
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_recently_updated
)
do
=
sort_title_recently_updated
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_oldest_updated
)
do
=
sort_title_oldest_updated
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_largest_repo
)
do
=
sort_title_largest_repo
=
link_to
'New Project'
,
new_project_path
,
class:
"btn btn-sm btn-success"
%ul
.well-list
-
@projects
.
each
do
|
project
|
%li
.list-item-name
%span
{
class:
visibility_level_color
(
project
.
visibility_level
)
}
=
visibility_level_icon
(
project
.
visibility_level
)
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
]
.pull-right
-
if
project
.
archived
%span
.label.label-warning
archived
%span
.label.label-gray
=
repository_size
(
project
)
=
link_to
'Edit'
,
edit_namespace_project_path
(
project
.
namespace
,
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-sm"
=
link_to
'Destroy'
,
[
project
.
namespace
.
becomes
(
Namespace
),
project
],
data:
{
confirm:
remove_project_message
(
project
)
},
method: :delete
,
class:
"btn btn-sm btn-remove"
-
if
@projects
.
blank?
.nothing-here-block
0 projects matches
=
paginate
@projects
,
theme:
"gitlab"
%b
.caret
%ul
.dropdown-menu
%li
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_recently_created
)
do
=
sort_title_recently_created
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_oldest_created
)
do
=
sort_title_oldest_created
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_recently_updated
)
do
=
sort_title_recently_updated
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_oldest_updated
)
do
=
sort_title_oldest_updated
=
link_to
admin_namespaces_projects_path
(
sort:
sort_value_largest_repo
)
do
=
sort_title_largest_repo
=
link_to
'New Project'
,
new_project_path
,
class:
"btn btn-sm btn-success"
%ul
.well-list
-
@projects
.
each
do
|
project
|
%li
.list-item-name
%span
{
class:
visibility_level_color
(
project
.
visibility_level
)
}
=
visibility_level_icon
(
project
.
visibility_level
)
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
.
namespace
.
becomes
(
Namespace
),
project
]
.pull-right
-
if
project
.
archived
%span
.label.label-warning
archived
%span
.label.label-gray
=
repository_size
(
project
)
=
link_to
'Edit'
,
edit_namespace_project_path
(
project
.
namespace
,
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-sm"
=
link_to
'Destroy'
,
[
project
.
namespace
.
becomes
(
Namespace
),
project
],
data:
{
confirm:
remove_project_message
(
project
)
},
method: :delete
,
class:
"btn btn-sm btn-remove"
-
if
@projects
.
blank?
.nothing-here-block
0 projects matches
=
paginate
@projects
,
theme:
"gitlab"
app/views/admin/users/index.html.haml
View file @
922a164d
This diff is collapsed.
Click to expand it.
app/views/layouts/nav/_admin.html.haml
View file @
922a164d
%ul
.nav-links.scrolling-tabs
.fade-left
=
nav_link
(
controller:
:dashboard
,
html_options:
{
class:
'home'
})
do
=
link_to
admin_root_path
,
title:
'Overview'
do
=
nav_link
(
controller:
%w(dashboard admin projects users groups)
,
html_options:
{
class:
'home'
})
do
=
link_to
admin_root_path
,
title:
'Overview'
,
class:
'shortcuts-tree'
do
%span
Overview
=
nav_link
(
controller:
[
:admin
,
:projects
])
do
=
link_to
admin_namespaces_projects_path
,
title:
'Projects'
do
%span
Projects
=
nav_link
(
controller: :users
)
do
=
link_to
admin_users_path
,
title:
'Users'
do
%span
Users
=
nav_link
(
controller: :groups
)
do
=
link_to
admin_groups_path
,
title:
'Groups'
do
%span
Groups
=
nav_link
(
controller: :deploy_keys
)
do
=
link_to
admin_deploy_keys_path
,
title:
'Deploy Keys'
do
%span
...
...
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