2012-09-25 21:50:40 +01:00
|
|
|
-content_for :sidebar do
|
2013-03-20 15:06:25 +00:00
|
|
|
- if current_user
|
|
|
|
=form_tag project_pull_requests_path(@project), :id => 'filter_pull_requests', :method => :get do
|
|
|
|
.bordered.nopadding
|
|
|
|
%h3=t("layout.issues.accessory")
|
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%td.width18=radio_button_tag :myradio, 'all', !@is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
|
|
|
%td.width135=t("layout.issues.all")
|
|
|
|
%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'}
|
|
|
|
%td=t("layout.issues.to_me")
|
|
|
|
%td.width30.right=@project.issues.joins(:pull_request).where(:assignee_id => current_user.id).count
|
|
|
|
=form_tag project_pull_requests_path(@project), :id => 'search_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)
|