Rename 'notes/notes' partial to 'notes/notes_with_form'

This commit is contained in:
Riyad Preukschas 2012-09-14 04:59:55 +02:00
parent cee230a158
commit 61eb650db0
8 changed files with 7 additions and 7 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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

View file

@ -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")}");

View file

@ -1,2 +1,2 @@
%div.wall_page
= render "notes/notes", tid: nil, tt: "wall"
= render "notes/notes_with_form", tid: nil, tt: "wall"

View file

@ -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"

View file

@ -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"