BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
_diff_with_notes.html.haml
app/views/discussions/_diff_with_notes.html.haml
+1
-1
_note_mr_or_commit_email.html.haml
app/views/notify/_note_mr_or_commit_email.html.haml
+2
-4
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 @@
%table
-
discussions
=
{
discussion
.
original_line_code
=>
discussion
}
=
render
partial:
"projects/diffs/line"
,
collection:
discussion
.
highligh
ted_diff_lines
,
collection:
discussion
.
trunca
ted_diff_lines
,
as: :line
,
locals:
{
diff_file:
diff_file
,
discussions:
discussions
,
...
...
app/views/notify/_note_mr_or_commit_email.html.haml
View file @
87665170
...
...
@@ -3,12 +3,10 @@
New comment
-
if
@
note
.
diff_note?
&&
@note
.
diff_file
-
if
@
discussion
&&
@discussion
.
diff_file
on
=
link_to
@note
.
diff_file
.
file_path
,
@target_url
,
class:
'details'
\:
-
if
@discussion
\:
%table
=
render
partial:
"projects/diffs/line"
,
collection:
@discussion
.
truncated_diff_lines
,
...
...
lib/gitlab/diff/file.rb
View file @
87665170
...
...
@@ -69,7 +69,7 @@ module Gitlab
diff_refs
.
try
(
:head_sha
)
end
attr_writer
:highlighted_diff_lines
,
:text_parsed_diff_lines
attr_writer
:highlighted_diff_lines
# Array of Gitlab::Diff::Line objects
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