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
Tatuya Kamada
gitlab-ce
Commits
87665170
Commit
87665170
authored
Nov 23, 2016
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use assigned variables better
parent
b8917eb7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
app/views/discussions/_diff_with_notes.html.haml
app/views/discussions/_diff_with_notes.html.haml
+1
-1
app/views/notify/_note_mr_or_commit_email.html.haml
app/views/notify/_note_mr_or_commit_email.html.haml
+2
-4
lib/gitlab/diff/file.rb
lib/gitlab/diff/file.rb
+1
-1
No files found.
app/views/discussions/_diff_with_notes.html.haml
View file @
87665170
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
%table
%table
-
discussions
=
{
discussion
.
original_line_code
=>
discussion
}
-
discussions
=
{
discussion
.
original_line_code
=>
discussion
}
=
render
partial:
"projects/diffs/line"
,
=
render
partial:
"projects/diffs/line"
,
collection:
discussion
.
highligh
ted_diff_lines
,
collection:
discussion
.
trunca
ted_diff_lines
,
as: :line
,
as: :line
,
locals:
{
diff_file:
diff_file
,
locals:
{
diff_file:
diff_file
,
discussions:
discussions
,
discussions:
discussions
,
...
...
app/views/notify/_note_mr_or_commit_email.html.haml
View file @
87665170
...
@@ -3,12 +3,10 @@
...
@@ -3,12 +3,10 @@
New comment
New comment
-
if
@
note
.
diff_note?
&&
@note
.
diff_file
-
if
@
discussion
&&
@discussion
.
diff_file
on
on
=
link_to
@note
.
diff_file
.
file_path
,
@target_url
,
class:
'details'
=
link_to
@note
.
diff_file
.
file_path
,
@target_url
,
class:
'details'
\:
\:
-
if
@discussion
%table
%table
=
render
partial:
"projects/diffs/line"
,
=
render
partial:
"projects/diffs/line"
,
collection:
@discussion
.
truncated_diff_lines
,
collection:
@discussion
.
truncated_diff_lines
,
...
...
lib/gitlab/diff/file.rb
View file @
87665170
...
@@ -69,7 +69,7 @@ module Gitlab
...
@@ -69,7 +69,7 @@ module Gitlab
diff_refs
.
try
(
:head_sha
)
diff_refs
.
try
(
:head_sha
)
end
end
attr_writer
:highlighted_diff_lines
,
:text_parsed_diff_lines
attr_writer
:highlighted_diff_lines
# Array of Gitlab::Diff::Line objects
# Array of Gitlab::Diff::Line objects
def
diff_lines
def
diff_lines
...
...
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