2012-02-15 18:53:58 +00:00
|
|
|
-content_for :sidebar do
|
2012-03-31 00:37:54 +01:00
|
|
|
- if current_user
|
|
|
|
=form_tag project_issues_path(@project), :id => 'filter_issues', :method => :get do
|
2013-03-20 16:05:37 +00:00
|
|
|
.bordered
|
2012-03-31 00:37:54 +01:00
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%td.width18=radio_button_tag :myradio, 'all', !@is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
2013-04-29 19:13:45 +01:00
|
|
|
%td.width135=t('layout.issues.all')
|
2013-05-16 10:52:16 +01:00
|
|
|
%td.width30.right=@project.issues.without_pull_requests.not_closed_or_merged.count
|
2012-03-31 00:37:54 +01:00
|
|
|
%tr
|
2013-04-29 19:13:45 +01:00
|
|
|
%td=radio_button_tag :myradio, 'assigned', @is_assigned_to_me, {:id => 'myradio1', :class => 'niceRadio', :name => 'filter'}
|
|
|
|
%td=t('layout.issues.assigned')
|
2013-05-16 10:52:16 +01:00
|
|
|
%td.width30.right=@project.issues.without_pull_requests.where(:assignee_id => current_user.id).not_closed_or_merged.count
|
2012-09-26 12:46:23 +01:00
|
|
|
=form_tag project_issues_path(@project), :id => 'search_issue', :class => 'ajax_search_form', :method => :get do
|
2012-02-20 16:54:45 +00:00
|
|
|
.bordered.bpadding20
|
2013-03-19 15:30:50 +00:00
|
|
|
- search = params[:search_issue].present? ? params[:search_issue] : t('layout.issues.search')
|
|
|
|
=tracker_search_field(:search_issue, search)
|
2012-03-05 13:57:01 +00:00
|
|
|
- if can? :new, @project.issues.new
|
|
|
|
.bordered.nopadding
|
|
|
|
%h3.bmargin10=t('layout.issues.new')
|
|
|
|
= link_to t("layout.add"), new_project_issue_path(@project), :class => 'button'
|
2012-05-02 10:18:07 +01:00
|
|
|
=render 'labels'
|