_show.html.haml 1.57 KB
Newer Older
gitlabhq's avatar
gitlabhq committed
1
%tr{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(@project, issue) }
gitlabhq's avatar
gitlabhq committed
2
  - if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
gitlabhq's avatar
gitlabhq committed
3 4
    %td
      = image_tag "move.png" , :class => [:handle, :left]
gitlabhq's avatar
gitlabhq committed
5
  %td
VSizov's avatar
VSizov committed
6
    = image_tag gravatar_icon(issue.assignee.email), :class => "left", :width => 40, :style => "padding:0 5px;"
gitlabhq's avatar
gitlabhq committed
7 8
    = truncate issue.assignee.name, :lenght => 20
  %td ##{issue.id}
gitlabhq's avatar
gitlabhq committed
9
  %td
gitlabhq's avatar
gitlabhq committed
10
    = truncate(html_escape(issue.title), :length => 60)
gitlabhq's avatar
gitlabhq committed
11 12 13 14 15 16 17 18 19 20 21
    %br
    - if issue.critical
      %span.tag.high critical
    - if issue.today?
      %span.tag.today today
    -#- if issue.author == current_user
      -#%span.tag.yours yours
    -#- if issue.notes.count > 0
      -#%span.tag.notes
        -#= issue.notes.count
        -#notes
gitlabhq's avatar
gitlabhq committed
22 23
  %td
    - if can? current_user, :write_issue, @project
Nihad Abbasov's avatar
Nihad Abbasov committed
24
      = form_for([@project, issue], :remote => true) do |f|
gitlabhq's avatar
gitlabhq committed
25 26
        = f.check_box :closed, :onclick => "$(this).parent().submit();"
        = hidden_field_tag :status_only, true
Nihad Abbasov's avatar
Nihad Abbasov committed
27
    - else
gitlabhq's avatar
gitlabhq committed
28 29 30 31 32 33
      = check_box_tag "closed", 1, issue.closed, :disabled => true
  %td
    - if can?(current_user, :admin_issue, @project) || issue.author == current_user
      = link_to 'Edit', edit_project_issue_path(@project, issue), :class => "lbutton positive", :remote => true
    - if can?(current_user, :admin_issue, @project) || issue.author == current_user
      = link_to 'Destroy', [@project, issue], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "lbutton delete-issue negative", :id => "destroy_issue_#{issue.id}"