Rename 'notes/notes' partial to 'notes/notes_with_form'
This commit is contained in:
parent
cee230a158
commit
61eb650db0
|
@ -1,6 +1,6 @@
|
|||
= render "commits/commit_box"
|
||||
= render "commits/diffs", diffs: @commit.diffs
|
||||
= render "notes/notes", tid: @commit.id, tt: "commit"
|
||||
= render "notes/notes_with_form", tid: @commit.id, tt: "commit"
|
||||
= render "notes/per_line_form"
|
||||
|
||||
|
||||
|
|
|
@ -61,4 +61,4 @@
|
|||
= markdown @issue.description
|
||||
|
||||
|
||||
.issue_notes#notes= render "notes/notes", tid: @issue.id, tt: "issue"
|
||||
.issue_notes#notes= render "notes/notes_with_form", tid: @issue.id, tt: "issue"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
Diff
|
||||
|
||||
.merge_request_notes#notes{ class: (controller.action_name == 'show') ? "" : "hide" }
|
||||
= render("notes/notes", tid: @merge_request.id, tt: "merge_request")
|
||||
= render("notes/notes_with_form", tid: @merge_request.id, tt: "merge_request")
|
||||
.merge-request-diffs
|
||||
= render "merge_requests/show/diffs" if @diffs
|
||||
.status
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
:plain
|
||||
$(".merge-request-notes").html("#{escape_javascript(render("notes/notes", tid: @merge_request.id, tt: "merge_request"))}");
|
||||
$(".merge-request-notes").html("#{escape_javascript(render notes/notes_with_form", tid: @merge_request.id, tt: "merge_request")}");
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
%div.wall_page
|
||||
= render "notes/notes", tid: nil, tt: "wall"
|
||||
= render "notes/notes_with_form", tid: nil, tt: "wall"
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
%div{class: current_user.dark_scheme ? "black" : ""}
|
||||
= raw @snippet.colorize(options: { linenos: 'True'})
|
||||
|
||||
= render "notes/notes", tid: @snippet.id, tt: "snippet"
|
||||
= render "notes/notes_with_form", tid: @snippet.id, tt: "snippet"
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
Delete this page
|
||||
|
||||
%hr
|
||||
.wiki_notes#notes= render "notes/notes", tid: @wiki.id, tt: "wiki"
|
||||
.wiki_notes#notes= render "notes/notes_with_form", tid: @wiki.id, tt: "wiki"
|
||||
|
|
Loading…
Reference in a new issue