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
7220eebb
Commit
7220eebb
authored
May 13, 2021
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use yaml for default_enabled
parent
8380c272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/views/projects/merge_requests/_mr_title.html.haml
app/views/projects/merge_requests/_mr_title.html.haml
+1
-1
No files found.
app/views/projects/merge_requests/_mr_title.html.haml
View file @
7220eebb
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
-
are_close_and_open_buttons_hidden
=
merge_request_button_hidden?
(
@merge_request
,
true
)
&&
merge_request_button_hidden?
(
@merge_request
,
false
)
-
are_close_and_open_buttons_hidden
=
merge_request_button_hidden?
(
@merge_request
,
true
)
&&
merge_request_button_hidden?
(
@merge_request
,
false
)
-
cache_key
=
[
@project
,
@merge_request
,
can_update_merge_request
,
can_reopen_merge_request
,
are_close_and_open_buttons_hidden
]
-
cache_key
=
[
@project
,
@merge_request
,
can_update_merge_request
,
can_reopen_merge_request
,
are_close_and_open_buttons_hidden
]
=
cache_if
(
Feature
.
enabled?
(
:cached_mr_title
,
@project
),
cache_key
,
expires_in:
1
.
day
)
do
=
cache_if
(
Feature
.
enabled?
(
:cached_mr_title
,
@project
,
default_enabled: :yaml
),
cache_key
,
expires_in:
1
.
day
)
do
-
if
@merge_request
.
closed_or_merged_without_fork?
-
if
@merge_request
.
closed_or_merged_without_fork?
.gl-alert.gl-alert-danger.gl-mb-5
.gl-alert.gl-alert-danger.gl-mb-5
=
sprite_icon
(
'error'
,
size:
16
,
css_class:
'gl-icon gl-alert-icon gl-alert-icon-no-title'
)
=
sprite_icon
(
'error'
,
size:
16
,
css_class:
'gl-icon gl-alert-icon gl-alert-icon-no-title'
)
...
...
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