rosa-build/app/views/projects/pull_requests/_index_sidebar.html.haml

19 lines
1.1 KiB
Plaintext
Raw Normal View History

-content_for :sidebar do
- 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
.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)