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
fa649c76
Commit
fa649c76
authored
May 31, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
c145e7f2
b095a081
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
app/views/shared/_old_visibility_level.html.haml
app/views/shared/_old_visibility_level.html.haml
+1
-1
changelogs/unreleased/gt-open-visibility-help-link-in-a-new-tab.yml
.../unreleased/gt-open-visibility-help-link-in-a-new-tab.yml
+5
-0
doc/development/ee_features.md
doc/development/ee_features.md
+0
-9
No files found.
app/views/shared/_old_visibility_level.html.haml
View file @
fa649c76
.form-group.row
.col-sm-2.col-form-label
=
_
(
'Visibility level'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
"public_access/public_access"
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
"public_access/public_access"
)
,
target:
'_blank'
.col-sm-10
=
render
'shared/visibility_level'
,
f:
f
,
visibility_level:
visibility_level
,
can_change_visibility_level:
can_change_visibility_level
,
form_model:
form_model
,
with_label:
with_label
changelogs/unreleased/gt-open-visibility-help-link-in-a-new-tab.yml
0 → 100644
View file @
fa649c76
---
title
:
Open visibility help link in a new tab
merge_request
:
28603
author
:
George Tsiolis
type
:
fixed
doc/development/ee_features.md
View file @
fa649c76
...
...
@@ -459,15 +459,6 @@ Resolving an EE template path that is relative to the CE view path will not work
=
render_if_exists
'projects/button'
# Will render `ee/app/views/projects/_button`
```
You should not explicitly set render options like
`partial`
or provide a
`locals`
hash.
The first argument should be a path string and the second can be a hash replacing
`locals`
.
```
ruby
render
partial:
'projects/button'
,
locals:
{
project:
project
}
# becomes
render_if_exists
'projects/button'
,
project:
project
```
#### Using `render_ce`
For
`render`
and
`render_if_exists`
, they search for the EE partial first,
...
...
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