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

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
%h2
= "Issue ##{@issue.id} - #{@issue.title}"
.span-15
= simple_format html_escape(@issue.content)
.issue_notes= render "notes/notes"
.span-8.right
.span-8
- if @issue.closed
%center.success Closed
- else
2011-10-08 23:36:38 +02:00
%center.error Open
%table.round-borders
%tr
%td Title:
2011-10-08 23:36:38 +02:00
%td
= truncate html_escape(@issue.title)
%tr
%td Project
2011-10-08 23:36:38 +02:00
%td
%strong= @issue.project.name
%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
%tr
%td Closed?
%td
- if can? current_user, :write_issue, @project
= 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
.clear