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
Jérome Perrin
gitlab-ce
Commits
c1515cd8
Commit
c1515cd8
authored
Nov 25, 2016
by
Gabriel Gizotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better mentioned but not closing message and icon
parent
80915c35
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
app/helpers/merge_requests_helper.rb
app/helpers/merge_requests_helper.rb
+0
-7
app/views/projects/merge_requests/widget/_open.html.haml
app/views/projects/merge_requests/widget/_open.html.haml
+2
-2
No files found.
app/helpers/merge_requests_helper.rb
View file @
c1515cd8
...
@@ -63,13 +63,6 @@ module MergeRequestsHelper
...
@@ -63,13 +63,6 @@ module MergeRequestsHelper
@mr_issues_mentioned_but_not_closing
||=
@merge_request
.
issues_mentioned_but_not_closing
@mr_issues_mentioned_but_not_closing
||=
@merge_request
.
issues_mentioned_but_not_closing
end
end
def
mr_issues_mentioned_but_not_closing_message
verb
=
mr_issues_mentioned_but_not_closing
.
size
>
1
?
'are'
:
'is'
issue_text
=
'issue'
.
pluralize
(
mr_issues_mentioned_but_not_closing
.
size
)
"The following
#{
issue_text
}
#{
verb
}
mentioned but not being closed:"
end
def
mr_change_branches_path
(
merge_request
)
def
mr_change_branches_path
(
merge_request
)
new_namespace_project_merge_request_path
(
new_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@project
.
namespace
,
@project
,
...
...
app/views/projects/merge_requests/widget/_open.html.haml
View file @
c1515cd8
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
-
if
mr_issues_mentioned_but_not_closing
.
present?
-
if
mr_issues_mentioned_but_not_closing
.
present?
.mr-widget-footer
.mr-widget-footer
%span
%span
%i
.fa.fa-
warning
%i
.fa.fa-
info-circle
=
mr_issues_mentioned_but_not_closing_message
#{
"Issue"
.
pluralize
(
mr_issues_mentioned_but_not_closing
.
size
)
}
mentioned but not being closed:
=
succeed
'.'
do
=
succeed
'.'
do
!=
markdown
issues_sentence
(
mr_issues_mentioned_but_not_closing
),
pipeline: :gfm
,
author:
@merge_request
.
author
!=
markdown
issues_sentence
(
mr_issues_mentioned_but_not_closing
),
pipeline: :gfm
,
author:
@merge_request
.
author
=
mr_assign_issues_link
=
mr_assign_issues_link
...
...
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