Pass the arguments from where we render the partial

Thread:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7345/diffs#note_19707619
This commit is contained in:
Lin Jen-Shin 2016-12-16 19:52:54 +08:00 committed by Clement Ho
parent 12753def90
commit b0d8d742c5
2 changed files with 4 additions and 1 deletions

View file

@ -32,7 +32,7 @@
title: "New Issue",
id: "new_issue_link" do
New Issue
= render 'shared/issuable/search_bar', type: :issues
= render 'shared/issuable/search_bar', type: :issues, finder: issues_finder
.issues-holder
= render 'issues'

View file

@ -1,3 +1,6 @@
- type = local_assigns.fetch(:type)
- finder = local_assigns.fetch(:finder)
.issues-filters
.issues-details-filters.row-content-block.second-block.filtered-search-block
= form_tag page_filter_path(without: [:assignee_id, :author_id, :milestone_title, :label_name, :search]), method: :get, class: 'filter-form js-filter-form' do