2011-10-08 23:36:38 +02:00
|
|
|
%h2
|
2011-10-28 11:22:09 +02:00
|
|
|
= "Issue ##{@issue.id} - #{html_escape(@issue.title)}"
|
2011-11-01 12:17:36 +01:00
|
|
|
.left.width-65p
|
2011-10-27 17:46:30 +02:00
|
|
|
-#= simple_format html_escape(@issue.content)
|
2011-10-08 23:36:38 +02:00
|
|
|
.issue_notes= render "notes/notes"
|
2011-11-01 12:17:36 +01:00
|
|
|
.right.width-30p
|
2011-10-08 23:36:38 +02:00
|
|
|
.span-8
|
|
|
|
- if @issue.closed
|
|
|
|
%center.success Closed
|
2011-10-26 15:46:25 +02:00
|
|
|
- else
|
2011-10-08 23:36:38 +02:00
|
|
|
%center.error Open
|
|
|
|
%table.round-borders
|
|
|
|
%tr
|
2011-10-26 15:46:25 +02:00
|
|
|
%td Title:
|
2011-10-08 23:36:38 +02:00
|
|
|
%td
|
|
|
|
= truncate html_escape(@issue.title)
|
|
|
|
%tr
|
2011-10-26 15:46:25 +02:00
|
|
|
%td Project
|
2011-10-08 23:36:38 +02:00
|
|
|
%td
|
|
|
|
%strong= @issue.project.name
|
|
|
|
%tr
|
2011-10-26 15:46:25 +02:00
|
|
|
%td Author:
|
2011-10-08 23:36:38 +02:00
|
|
|
%td
|
|
|
|
= image_tag gravatar_icon(@issue.author.email), :class => "left", :width => 40, :style => "padding:0 5px;"
|
|
|
|
= @issue.author.name
|
|
|
|
%tr
|
2011-10-26 15:46:25 +02:00
|
|
|
%td Assignee:
|
2011-10-08 23:36:38 +02:00
|
|
|
%td
|
|
|
|
= image_tag gravatar_icon(@issue.assignee.email), :class => "left", :width => 40, :style => "padding:0 5px;"
|
|
|
|
= @issue.assignee.name
|
2011-10-28 11:22:09 +02:00
|
|
|
%tr
|
|
|
|
%td Tags
|
|
|
|
%td
|
|
|
|
- if @issue.critical
|
|
|
|
%span.tag.high critical
|
|
|
|
- else
|
|
|
|
%span.tag.normal normal
|
|
|
|
|
|
|
|
- if @issue.today?
|
|
|
|
%span.tag.today today
|
2011-10-08 23:36:38 +02:00
|
|
|
%tr
|
|
|
|
%td Closed?
|
|
|
|
%td
|
|
|
|
- if can? current_user, :write_issue, @project
|
2011-10-26 15:46:25 +02:00
|
|
|
= form_for([@project, @issue]) do |f|
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.check_box :closed, :onclick => "$(this).parent().submit();"
|
|
|
|
= hidden_field_tag :status_only, true
|
2011-10-26 15:46:25 +02:00
|
|
|
- else
|
2011-10-08 23:36:38 +02:00
|
|
|
= check_box_tag "closed", 1, @issue.closed, :disabled => true
|
|
|
|
|
2011-10-27 17:18:50 +02:00
|
|
|
|
|
|
|
- if can?(current_user, :admin_issue, @issue)
|
|
|
|
.clear
|
|
|
|
= link_to 'Edit', edit_project_issue_path(@project, @issue), :class => "lbutton positive", :remote => true
|
|
|
|
.right= link_to 'Destroy', [@project, @issue], :confirm => 'Are you sure?', :method => :delete, :class => "lbutton delete-issue negative", :id => "destroy_issue_#{@issue.id}"
|
2011-10-08 23:36:38 +02:00
|
|
|
.clear
|
|
|
|
|