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
Léo-Paul Géneau
gitlab-ce
Commits
3bc507e5
Commit
3bc507e5
authored
Nov 17, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename diff note partials
parent
534bd5a2
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
12 additions
and
12 deletions
+12
-12
app/views/commit/show.html.haml
app/views/commit/show.html.haml
+1
-1
app/views/commits/_text_file.html.haml
app/views/commits/_text_file.html.haml
+2
-2
app/views/merge_requests/_show.html.haml
app/views/merge_requests/_show.html.haml
+1
-1
app/views/notes/_create_diff_note.js.haml
app/views/notes/_create_diff_note.js.haml
+3
-3
app/views/notes/_diff_note.html.haml
app/views/notes/_diff_note.html.haml
+0
-0
app/views/notes/_diff_note_form.html.haml
app/views/notes/_diff_note_form.html.haml
+0
-0
app/views/notes/_diff_note_link.html.haml
app/views/notes/_diff_note_link.html.haml
+0
-0
app/views/notes/_diff_notes_reply_button.html.haml
app/views/notes/_diff_notes_reply_button.html.haml
+0
-0
app/views/notes/_diff_notes_with_reply.html.haml
app/views/notes/_diff_notes_with_reply.html.haml
+3
-0
app/views/notes/_discussion_diff.html.haml
app/views/notes/_discussion_diff.html.haml
+1
-1
app/views/notes/_per_line_notes_with_reply.html.haml
app/views/notes/_per_line_notes_with_reply.html.haml
+0
-3
app/views/notes/create.js.haml
app/views/notes/create.js.haml
+1
-1
No files found.
app/views/commit/show.html.haml
View file @
3bc507e5
=
render
"commits/commit_box"
=
render
"commits/diffs"
,
diffs:
@commit
.
diffs
=
render
"notes/notes_with_form"
,
tid:
@commit
.
id
,
tt:
"commit"
=
render
"notes/
per_lin
e_form"
=
render
"notes/
diff_not
e_form"
:javascript
...
...
app/views/commits/_text_file.html.haml
View file @
3bc507e5
...
...
@@ -13,11 +13,11 @@
%td
.old_line
=
link_to
raw
(
type
==
"new"
?
" "
:
line_old
),
"#
#{
line_code
}
"
,
id:
line_code
-
if
@comments_allowed
=
render
"notes/
per_line
_note_link"
,
line_code:
line_code
=
render
"notes/
diff
_note_link"
,
line_code:
line_code
%td
.new_line
=
link_to
raw
(
type
==
"old"
?
" "
:
line_new
)
,
"#
#{
line_code
}
"
,
id:
line_code
%td
.line_content
{
class:
"noteable_line #{type} #{line_code}"
,
"line_code"
=>
line_code
}=
raw
"
#{
line
}
"
-
if
@reply_allowed
-
comments
=
@line_notes
.
select
{
|
n
|
n
.
line_code
==
line_code
}.
sort_by
(
&
:created_at
)
-
unless
comments
.
empty?
=
render
"notes/
per_line
_notes_with_reply"
,
notes:
comments
=
render
"notes/
diff
_notes_with_reply"
,
notes:
comments
app/views/merge_requests/_show.html.haml
View file @
3bc507e5
...
...
@@ -21,7 +21,7 @@
=
render
"merge_requests/show/diffs"
if
@diffs
.status
=
render
"notes/
per_lin
e_form"
=
render
"notes/
diff_not
e_form"
:javascript
$
(
function
(){
...
...
app/views/notes/_create_
per_line
_note.js.haml
→
app/views/notes/_create_
diff
_note.js.haml
View file @
3bc507e5
...
...
@@ -11,9 +11,9 @@
// find the commented line ...
var trEl = $(".
#{
note
.
line_code
}
").parent();
// ... and insert the note and the reply button after it
trEl.after("
#{
escape_javascript
(
render
"notes/
per_line
_reply_button"
,
note:
note
)
}
");
trEl.after("
#{
escape_javascript
(
render
"notes/
per_line
_note"
,
note:
note
)
}
");
trEl.after("
#{
escape_javascript
(
render
"notes/
diff_notes
_reply_button"
,
note:
note
)
}
");
trEl.after("
#{
escape_javascript
(
render
"notes/
diff
_note"
,
note:
note
)
}
");
} else {
// instert new note before reply button
trRpl.before("
#{
escape_javascript
(
render
"notes/
per_line
_note"
,
note:
note
)
}
");
trRpl.before("
#{
escape_javascript
(
render
"notes/
diff
_note"
,
note:
note
)
}
");
}
app/views/notes/_
per_line
_note.html.haml
→
app/views/notes/_
diff
_note.html.haml
View file @
3bc507e5
File moved
app/views/notes/_
per_lin
e_form.html.haml
→
app/views/notes/_
diff_not
e_form.html.haml
View file @
3bc507e5
File moved
app/views/notes/_
per_line
_note_link.html.haml
→
app/views/notes/_
diff
_note_link.html.haml
View file @
3bc507e5
File moved
app/views/notes/_
per_line
_reply_button.html.haml
→
app/views/notes/_
diff_notes
_reply_button.html.haml
View file @
3bc507e5
File moved
app/views/notes/_diff_notes_with_reply.html.haml
0 → 100644
View file @
3bc507e5
-
notes
.
each
do
|
note
|
=
render
"notes/diff_note"
,
note:
note
=
render
"notes/diff_notes_reply_button"
,
note:
notes
.
first
app/views/notes/_discussion_diff.html.haml
View file @
3bc507e5
...
...
@@ -20,5 +20,5 @@
%td
.line_content
{
class:
"noteable_line #{type} #{line_code}"
,
"line_code"
=>
line_code
}=
raw
"
#{
line
}
"
-
if
line_code
==
note
.
line_code
=
render
"notes/
per_line
_notes_with_reply"
,
notes:
discussion_notes
=
render
"notes/
diff
_notes_with_reply"
,
notes:
discussion_notes
-
break
# cut off diff after notes
app/views/notes/_per_line_notes_with_reply.html.haml
deleted
100644 → 0
View file @
534bd5a2
-
notes
.
each
do
|
note
|
=
render
"notes/per_line_note"
,
note:
note
=
render
"notes/per_line_reply_button"
,
note:
notes
.
first
app/views/notes/create.js.haml
View file @
3bc507e5
-
if
@note
.
line_code
=
render
"create_
per_line
_note"
,
note:
@note
=
render
"create_
diff
_note"
,
note:
@note
-
else
=
render
"create_common_note"
,
note:
@note
...
...
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