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
fc9e5743
Commit
fc9e5743
authored
Aug 11, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing static-analysis (rubocop)
parent
d542c2f1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
app/helpers/issuables_helper.rb
app/helpers/issuables_helper.rb
+1
-1
app/serializers/issue_entity.rb
app/serializers/issue_entity.rb
+1
-1
app/serializers/note_entity.rb
app/serializers/note_entity.rb
+3
-3
No files found.
app/helpers/issuables_helper.rb
View file @
fc9e5743
...
...
@@ -213,7 +213,7 @@ module IssuablesHelper
initialTitleText:
issuable
.
title
,
initialDescriptionHtml:
markdown_field
(
issuable
,
:description
),
initialDescriptionText:
issuable
.
description
,
initialTaskStatus:
issuable
.
task_status
,
initialTaskStatus:
issuable
.
task_status
}
data
.
merge!
(
updated_at_by
(
issuable
))
...
...
app/serializers/issue_entity.rb
View file @
fc9e5743
...
...
@@ -23,7 +23,7 @@ class IssueEntity < IssuableEntity
end
expose
:create_note_path
do
|
issue
|
namespace_project_notes_path
(
issue
.
project
.
namespace
,
issue
.
project
,
target_type:
'issue'
,
target_id:
issue
.
id
)
project_notes_path
(
issue
.
project
,
target_type:
'issue'
,
target_id:
issue
.
id
)
end
expose
:preview_note_path
do
|
issue
|
...
...
app/serializers/note_entity.rb
View file @
fc9e5743
...
...
@@ -37,7 +37,7 @@ class NoteEntity < API::Entities::Note
if
note
.
for_personal_snippet?
toggle_award_emoji_snippet_note_path
(
note
.
noteable
,
note
)
else
toggle_award_emoji_
namespace_project_note_path
(
note
.
project
.
namespace
,
note
.
project
,
note
.
id
)
toggle_award_emoji_
project_note_path
(
note
.
project
,
note
.
id
)
end
end
...
...
@@ -49,12 +49,12 @@ class NoteEntity < API::Entities::Note
if
note
.
for_personal_snippet?
snippet_note_path
(
note
.
noteable
,
note
)
else
namespace_project_note_path
(
note
.
project
.
namespace
,
note
.
project
,
note
)
project_note_path
(
note
.
project
,
note
)
end
end
expose
:attachment
,
using:
NoteAttachmentEntity
expose
:delete_attachment_path
,
if:
->
(
note
,
_
)
{
note
.
attachment?
}
do
|
note
|
delete_attachment_
namespace_project_note_path
(
note
.
project
.
namespace
,
note
.
project
,
note
)
delete_attachment_
project_note_path
(
note
.
project
,
note
)
end
end
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