[refs #579] small activity refactoring
This commit is contained in:
parent
fb1288e382
commit
ef37180825
|
@ -10,6 +10,6 @@
|
|||
-elsif item.is_a? Array
|
||||
=render 'projects/git/commits/commits_small', :commits => commits_queue if commits_queue.present?
|
||||
-commits_queue.clear
|
||||
=render 'projects/pull_requests/discussion_comments', :item => item, :project => @project, :commentable => @issue, :add_id => nil
|
||||
=render 'projects/pull_requests/discussion_comments', :item => item, :add_id => nil
|
||||
=render 'projects/git/commits/commits_small', :commits => commits_queue if commits_queue.present?
|
||||
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
-if item[0].blank?
|
||||
-item[1].each do |comment|
|
||||
= render 'projects/comments/comment', :comment => comment, :data => {:project => @project, :commentable => @issue}
|
||||
-else
|
||||
-comment = item[1].first
|
||||
.file
|
||||
.top
|
||||
.l=comment.data[:view_path]
|
||||
.r=link_to t("layout.pull_requests.view_full_changes"),
|
||||
"#{project_commentable_path(@project, @commentable)}##{comment_anchor(comment)}",
|
||||
:class => 'link_to_full_changes'
|
||||
.clear
|
||||
.diff_data=render_diff(comment.inline_diff(@repo), 0, item[1], comment.data[:path])
|
||||
-comment = item[1].first
|
||||
.file
|
||||
.top
|
||||
.l=comment.data[:view_path]
|
||||
.r=link_to t("layout.pull_requests.view_full_changes"),
|
||||
"#{project_commentable_path(@project, @commentable)}##{comment_anchor(comment)}",
|
||||
:class => 'link_to_full_changes'
|
||||
.clear
|
||||
.diff_data=render_diff(comment.inline_diff(@repo), 0, item[1], comment.data[:path])
|
||||
|
||||
|
|
Loading…
Reference in New Issue