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
Boxiang Sun
gitlab-ce
Commits
f9c5c7ae
Commit
f9c5c7ae
authored
Jan 24, 2019
by
Victor Zagorodny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add render_if_exists for sidebar and preferences
parent
87f299b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/views/layouts/nav/sidebar/_group.html.haml
app/views/layouts/nav/sidebar/_group.html.haml
+1
-1
app/views/profiles/preferences/show.html.haml
app/views/profiles/preferences/show.html.haml
+3
-0
No files found.
app/views/layouts/nav/sidebar/_group.html.haml
View file @
f9c5c7ae
...
...
@@ -36,7 +36,7 @@
%span
=
_
(
'Activity'
)
=
render_if_exists
'groups/sidebar/security_dashboard'
=
render_if_exists
'groups/sidebar/security_dashboard'
# EE-specific
-
if
group_sidebar_link?
(
:contribution_analytics
)
=
nav_link
(
path:
'analytics#show'
)
do
...
...
app/views/profiles/preferences/show.html.haml
View file @
f9c5c7ae
...
...
@@ -51,6 +51,9 @@
=
f
.
label
:dashboard
,
class:
'label-bold'
do
Default dashboard
=
f
.
select
:dashboard
,
dashboard_choices
,
{},
class:
'form-control'
=
render_if_exists
'profiles/preferences/group_overview_selector'
,
f:
f
# EE-specific
.form-group
=
f
.
label
:project_view
,
class:
'label-bold'
do
Project overview content
...
...
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