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

show.html.haml « issues « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: de97f40695605cc81e96f19bbfcfa9854ce31ea5 (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
45
46
47
48
49
50
%h2
  %strong
    Issue
    = "##{@issue.id}"
  –
  = html_escape(@issue.title)
.left.width-65p
  .issue_notes= render "notes/notes"

  .loading{ :style => "display:none;"}
    %center= image_tag "ajax-loader.gif"
.right.width-30p
  .span-8
  %table.round-borders
    %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 Tags
      %td
        - if @issue.critical
          %span.tag.high critical
        - else
          %span.tag.normal normal

        - if @issue.today?
          %span.tag.today today
    %tr
      %td Closed?
      %td
        - if can? current_user, :write_issue, @issue
          = 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

  - if can?(current_user, :write_issue, @issue)
    .clear
    %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}"
.clear