Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/issues/show.html.haml')
-rw-r--r--app/views/issues/show.html.haml44
1 files changed, 44 insertions, 0 deletions
diff --git a/app/views/issues/show.html.haml b/app/views/issues/show.html.haml
new file mode 100644
index 00000000000..199c80c8617
--- /dev/null
+++ b/app/views/issues/show.html.haml
@@ -0,0 +1,44 @@
+%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
+ %center.error Open
+ %table.round-borders
+ %tr
+ %td Title:
+ %td
+ = truncate html_escape(@issue.title)
+ %tr
+ %td Project
+ %td
+ %strong= @issue.project.name
+ %tr
+ %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 Closed?
+ %td
+ - if can? current_user, :write_issue, @project
+ = form_for([@project, @issue]) do |f|
+ = f.check_box :closed, :onclick => "$(this).parent().submit();"
+ = hidden_field_tag :status_only, true
+ - else
+ = check_box_tag "closed", 1, @issue.closed, :disabled => true
+
+
+.clear
+