summaryrefslogtreecommitdiff
path: root/app/views/issues/show.html.haml
blob: 199c80c86173ab5736276540d1ff8a348aaa9fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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