%h2
.issue-show-holder.ui-box
%strong
%h3
Issue
= " Issue # #{ @issue . id } "
= "# #{ @issue . id } "
.right
–
- if @issue . closed
= html_escape ( @issue . title )
%span .tag.high Resolved
.left.width-65p
- else
.issue_notes = render "notes/notes"
%span .tag.today Open
.loading { :style => "display:none;" }
.data
%center = image_tag "ajax-loader.gif"
%p = @issue . title
.right.width-30p
.span-8
- if @issue . author == @issue . assignee
%table .round-borders
= image_tag gravatar_icon ( @issue . assignee_email ), :width => 20 , :style => "padding:0 5px;"
%tr
= @issue . assignee_name
%td Author:
%td
= image_tag gravatar_icon ( @issue . author . email ), :class => "left" , :width => 40 , :style => "padding:0 5px;"
= @issue . author . name
%tr
%td Assignee:
%td
= image_tag gravatar_icon ( @issue . assignee . email ), :class => "left" , :width => 40 , :style => "padding:0 5px;"
= @issue . assignee . name
%tr
%td Tags
%td
- if @issue . critical
%span .tag.high critical
- else
- else
%span .tag.normal normal
= image_tag gravatar_icon ( @issue . author_email ), :width => 20 , :style => "padding:0 5px;"
= @issue . author_name
→
= image_tag gravatar_icon ( @issue . assignee_email ), :width => 20 , :style => "padding:0 5px;"
= @issue . assignee_name
.right
%cite .cgray = @issue . created_at . stamp ( "21 Aug 2011, 11:15pm" )
.clear
- if @issue . today?
.buttons
%span .tag.today today
%tr
%td Closed?
%td
- if can? current_user , :write_issue , @issue
- if can? current_user , :write_issue , @issue
= form_for ([ @project , @issue ]) do | f |
- if @issue . closed
= f . check_box :closed , :onclick => "$(this).parent().submit();"
= link_to 'Reopen' , project_issue_path ( @project , @issue , :issue => { :closed => false }, :status_only => true ), :method => :put , :class => "grey-button"
= hidden_field_tag :status_only , true
- else
- else
= check_box_tag "closed" , 1 , @issue . closed , :disabled => true
= link_to 'Resolve' , project_issue_path ( @project , @issue , :issue => { :closed => true }, :status_only => true ), :method => :put , :class => "grey-button"
.right
= link_to 'Edit' , edit_project_issue_path ( @project , @issue ), :class => "grey-button positive"
- if can? ( current_user , :write_issue , @issue )
.clear
.clear
%br
%br
= link_to 'Edit' , edit_project_issue_path ( @project , @issue ), :class => "grey-button positive" , :remote => true
%br
.right = link_to 'Destroy' , [ @project , @issue ], :confirm => 'Are you sure?' , :method => :delete , :class => "grey-button delete-issue negative" , :id => "destroy_issue_ #{ @issue . id } "
.issue_notes = render "notes/notes"
.loading { :style => "display:none;" }
%center = image_tag "ajax-loader.gif"
.clear
.clear