2012-09-25 21:50:40 +01:00
|
|
|
-content_for :sidebar do
|
2013-03-20 15:06:25 +00:00
|
|
|
- if current_user
|
2013-03-20 15:22:13 +00:00
|
|
|
=form_tag project_pull_requests_path(@project), :id => 'filter_issues', :method => :get do
|
2013-03-20 16:05:37 +00:00
|
|
|
.bordered
|
2013-03-20 15:06:25 +00:00
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%td.width18=radio_button_tag :myradio, 'all', !@is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
2013-03-20 16:05:37 +00:00
|
|
|
%td.width135=t("layout.pull_requests.all")
|
2013-03-20 15:06:25 +00:00
|
|
|
%td.width30.right=@project.issues.joins(:pull_request).count
|
|
|
|
%tr
|
|
|
|
%td=radio_button_tag :myradio, 'to_me', @is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
2013-03-20 16:05:37 +00:00
|
|
|
%td=t("layout.pull_requests.to_me")
|
2013-03-20 15:06:25 +00:00
|
|
|
%td.width30.right=@project.issues.joins(:pull_request).where(:assignee_id => current_user.id).count
|
2013-03-20 15:22:13 +00:00
|
|
|
=form_tag project_pull_requests_path(@project), :id => 'filter_pull_requests', :method => :get, :class => 'ajax_search_form' do
|
2012-09-27 18:21:10 +01:00
|
|
|
.bordered.bpadding20
|
2013-03-19 15:30:50 +00:00
|
|
|
- search = params[:search_pull_request].present? ? params[:search_pull_request] : t('layout.pull_requests.search')
|
|
|
|
=tracker_search_field(:search_pull_request, search)
|