gitlabhq/app/views/issues/show.html.haml

52 lines
1.5 KiB
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
%h2
2011-11-05 14:31:54 +01:00
%strong
Issue
= "##{@issue.id}"
–
= html_escape(@issue.title)
2011-11-01 12:17:36 +01:00
.left.width-65p
2011-10-08 23:36:38 +02:00
.issue_notes= render "notes/notes"
2011-11-04 16:46:51 +01:00
.loading{ :style => "display:none;"}
%center= image_tag "ajax-loader.gif"
2011-11-01 12:17:36 +01:00
.right.width-30p
2011-10-08 23:36:38 +02:00
.span-8
%table.round-borders
%tr
%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
%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
2011-11-05 14:31:54 +01:00
- if can? current_user, :write_issue, @issue
= 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
- 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
2011-11-05 14:31:54 +01:00
- if can?(current_user, :write_issue, @issue)
2011-10-27 17:18:50 +02:00
.clear
2011-11-05 14:31:54 +01:00
%br
= 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