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
02790cf7
Commit
02790cf7
authored
Sep 19, 2019
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve UI for admin > projects page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b0759564
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
+21
-17
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+4
-0
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+17
-17
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
02790cf7
...
...
@@ -882,6 +882,10 @@ pre.light-well {
.project-row
{
display
:
block
;
.description
>
p
{
margin-bottom
:
0
;
}
}
}
...
...
app/views/admin/projects/index.html.haml
View file @
02790cf7
...
...
@@ -2,7 +2,23 @@
-
params
[
:visibility_level
]
||=
[]
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
.prepend-top-default
%ul
.nav-links.nav.nav-tabs
-
opts
=
params
[
:visibility_level
].
present?
?
{}
:
{
page:
admin_projects_path
}
=
nav_link
(
opts
)
do
=
link_to
admin_projects_path
do
All
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:visibility_level
]
==
Gitlab
::
VisibilityLevel
::
PRIVATE
.
to_s
)
})
do
=
link_to
admin_projects_path
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
do
Private
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:visibility_level
]
==
Gitlab
::
VisibilityLevel
::
INTERNAL
.
to_s
)
})
do
=
link_to
admin_projects_path
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
do
Internal
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:visibility_level
]
==
Gitlab
::
VisibilityLevel
::
PUBLIC
.
to_s
)
})
do
=
link_to
admin_projects_path
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
do
Public
.nav-controls
.search-holder
=
render
'shared/projects/search_form'
,
autofocus:
true
,
admin_view:
true
.dropdown
...
...
@@ -22,20 +38,4 @@
New Project
=
button_tag
"Search"
,
class:
"btn btn-primary btn-search hide"
%ul
.nav-links.nav.nav-tabs
-
opts
=
params
[
:visibility_level
].
present?
?
{}
:
{
page:
admin_projects_path
}
=
nav_link
(
opts
)
do
=
link_to
admin_projects_path
do
All
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:visibility_level
]
==
Gitlab
::
VisibilityLevel
::
PRIVATE
.
to_s
)
})
do
=
link_to
admin_projects_path
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
)
do
Private
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:visibility_level
]
==
Gitlab
::
VisibilityLevel
::
INTERNAL
.
to_s
)
})
do
=
link_to
admin_projects_path
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
do
Internal
=
nav_link
(
html_options:
{
class:
active_when
(
params
[
:visibility_level
]
==
Gitlab
::
VisibilityLevel
::
PUBLIC
.
to_s
)
})
do
=
link_to
admin_projects_path
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
do
Public
=
render
'projects'
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