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

38 lines
1.6 KiB
Plaintext
Raw Normal View History

2011-10-25 06:34:02 +02:00
%tr{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(@project, issue) }
2011-10-27 16:08:40 +02:00
- if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
2011-10-25 06:34:02 +02:00
%td
= image_tag "move.png" , :class => [:handle, :left]
2011-10-08 23:36:38 +02:00
%td
2011-10-15 19:41:38 +02:00
= image_tag gravatar_icon(issue.assignee.email), :class => "left", :width => 40, :style => "padding:0 5px;"
2011-11-05 14:31:54 +01:00
= issue.assignee.name
2011-10-08 23:36:38 +02:00
%td ##{issue.id}
2011-10-25 06:34:02 +02:00
%td
2011-11-05 14:31:54 +01:00
= truncate(html_escape(issue.title), :length => 200)
%br
2011-10-25 06:34:02 +02:00
%br
- if issue.critical
%span.tag.high critical
- if issue.today?
%span.tag.today today
2011-11-06 14:52:23 +01:00
.right
- if can?(current_user, :admin_issue, @project) || issue.author == current_user
= link_to 'Edit', edit_project_issue_path(@project, issue), :class => "cgray", :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 => "cred delete-issue negative", :id => "destroy_issue_#{issue.id}"
2011-10-25 06:34:02 +02:00
-#- if issue.author == current_user
-#%span.tag.yours yours
-#- if issue.notes.count > 0
-#%span.tag.notes
-#= issue.notes.count
-#notes
2011-10-08 23:36:38 +02:00
%td
- if can? current_user, :write_issue, @project
= form_for([@project, issue], :remote => true) 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