Skip to content
Snippets Groups Projects
Commit 2ed7cbfb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Move projects controllers/views in Projects module

parent 95791316
No related branches found
No related tags found
No related merge requests found
Showing
with 10 additions and 10 deletions
Loading
Loading
@@ -7,5 +7,5 @@
and
%span.cred #{@commit.stats.deletions} deletions
 
= render "commits/diffs", diffs: @commit.diffs
= render "notes/notes_with_form"
= render "projects/commits/diffs", diffs: @commit.diffs
= render "projects/notes/notes_with_form"
Loading
Loading
@@ -10,7 +10,7 @@
%p.cgray
Showing #{pluralize(diffs.count, "changed file")}
.file-stats
= render "commits/diff_head", diffs: diffs
= render "projects/commits/diff_head", diffs: diffs
 
.files
- unless @suppress_diff
Loading
Loading
@@ -41,9 +41,9 @@
-# Skipp all non non-supported blobs
- next unless file.respond_to?('text?')
- if file.text?
= render "commits/text_file", diff: diff, index: i
= render "projects/commits/text_file", diff: diff, index: i
- elsif file.image?
- old_file = Gitlab::Git::Blob.new(@repository, @commit.parent_id, @ref, diff.old_path) if @commit.parent_id
= render "commits/image", diff: diff, old_file: old_file, file: file, index: i
= render "projects/commits/image", diff: diff, old_file: old_file, file: file, index: i
- else
%p.nothing_here_message No preview for this file type
Loading
Loading
@@ -13,11 +13,11 @@
%td.old_line
= link_to raw(type == "new" ? " " : line_old), "##{line_code}", id: line_code
- if @comments_allowed
= render "notes/diff_note_link", line_code: line_code
= render "projects/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 diff_line_content(line)
 
- if @reply_allowed
- comments = @line_notes.select { |n| n.line_code == line_code }.sort_by(&:created_at)
- unless comments.empty?
= render "notes/diff_notes_with_reply", notes: comments
= render "projects/notes/diff_notes_with_reply", notes: comments
= render "commits/head"
= render "projects/commits/head"
 
%h3.page_title
Compare View
Loading
Loading
= render "commits/head"
= render "projects/commits/head"
 
%h3.page_title
Compare View
Loading
Loading
@@ -20,4 +20,4 @@
 
- unless @diffs.empty?
%h4 Diff
= render "commits/diffs", diffs: @diffs
= render "projects/commits/diffs", diffs: @diffs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment