diff --git a/app/views/projects/commits/_commits.html.haml b/app/views/projects/commits/_commits.html.haml index d57659065a88a3b316e38989eed2b0de988e910e..f279e3c37cd9f0e598e265fc491b2da18f7a569e 100644 --- a/app/views/projects/commits/_commits.html.haml +++ b/app/views/projects/commits/_commits.html.haml @@ -7,5 +7,5 @@ %p= pluralize(commits.count, 'commit') .col-md-10 %ul.bordered-list - = render commits, project: @project + = render commits, project: project %hr.lists-separator diff --git a/app/views/projects/commits/show.html.haml b/app/views/projects/commits/show.html.haml index 56956625e0ba740a1b4b3cfefd4a5deef4183360..b80639763c8f04707f0b161e7de9a646687722cc 100644 --- a/app/views/projects/commits/show.html.haml +++ b/app/views/projects/commits/show.html.haml @@ -13,7 +13,7 @@ = commits_breadcrumbs %div{id: dom_id(@project)} - #commits-list= render "commits" + #commits-list= render "commits", project: @project .clear = spinner diff --git a/app/views/projects/merge_requests/_new_submit.html.haml b/app/views/projects/merge_requests/_new_submit.html.haml index 6c5875c7d42c087447de989a1b9e2f2de7caf50b..ac374532ffd92048a1c8cc5f47b3863e8556e560 100644 --- a/app/views/projects/merge_requests/_new_submit.html.haml +++ b/app/views/projects/merge_requests/_new_submit.html.haml @@ -94,7 +94,7 @@ %span.badge= @diffs.size .commits.tab-content - = render "projects/commits/commits" + = render "projects/commits/commits", project: @project .diffs.tab-content - if @diffs.present? = render "projects/diffs/diffs", diffs: @diffs, project: @project diff --git a/app/views/projects/merge_requests/show/_commits.html.haml b/app/views/projects/merge_requests/show/_commits.html.haml index ac214e687b8462c8e581ca6a686e3bbcb9373ed2..3b7f283daf0468774e60114d0c3490d26c71cefc 100644 --- a/app/views/projects/merge_requests/show/_commits.html.haml +++ b/app/views/projects/merge_requests/show/_commits.html.haml @@ -1 +1 @@ -= render "projects/commits/commits" \ No newline at end of file += render "projects/commits/commits", project: @merge_request.source_project