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
29c71f2f
Commit
29c71f2f
authored
Sep 14, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename 'notes/reply_button' partial to 'notes/per_line_reply_button'
parent
c02e3f21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
_text_file.html.haml
app/views/commits/_text_file.html.haml
+1
-1
_create_per_line_note.js.haml
app/views/notes/_create_per_line_note.js.haml
+1
-1
_per_line_reply_button.html.haml
app/views/notes/_per_line_reply_button.html.haml
+0
-0
No files found.
app/views/commits/_text_file.html.haml
View file @
29c71f2f
...
...
@@ -23,4 +23,4 @@
-
comments
.
each_with_index
do
|
note
,
i
|
=
render
"notes/per_line_show"
,
note:
note
-
@line_notes
.
reject!
{
|
n
|
n
==
note
}
=
render
"notes/reply_button"
,
line_code:
line_code
=
render
"notes/
per_line_
reply_button"
,
line_code:
line_code
app/views/notes/_create_per_line_note.js.haml
View file @
29c71f2f
...
...
@@ -11,7 +11,7 @@
// 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/reply_button"
,
line_code:
note
.
line_code
)
}
");
trEl.after("
#{
escape_javascript
(
render
"notes/
per_line_
reply_button"
,
line_code:
note
.
line_code
)
}
");
trEl.after("
#{
escape_javascript
(
render
"notes/per_line_show"
,
note:
note
)
}
");
} else {
// instert new note before reply button
...
...
app/views/notes/_reply_button.html.haml
→
app/views/notes/_
per_line_
reply_button.html.haml
View file @
29c71f2f
File moved
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