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
|
|
|
|
.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.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.where(:user_id => current_user).count
|
2012-02-20 16:54:45 +00:00
|
|
|
=form_tag project_issues_path(@project), :id => 'search_issue', :method => :get do
|
|
|
|
.bordered.bpadding20
|
2012-02-27 16:10:12 +00:00
|
|
|
=tracker_search_field(:search_issue, t('layout.issues.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-02-23 14:48:31 +00:00
|
|
|
=render :partial => 'labels'
|