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

28 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-01-29 11:04:09 +01:00
%li.wll{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(issue.project, issue) }
.right
- if can? current_user, :modify_issue, issue
2012-01-29 11:04:09 +01:00
- if issue.closed
= link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small", :remote => true
- else
= link_to 'Resolve', project_issue_path(issue.project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "success btn small", :remote => true
= link_to 'Edit', edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true
-#- if can?(current_user, :admin_issue, @project) || issue.author == current_user
= link_to 'Remove', [issue.project, issue], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "danger btn small delete-issue", :id => "destroy_issue_#{issue.id}"
2012-02-11 22:22:33 +01:00
= image_tag gravatar_icon(issue.assignee_email), :class => "avatar"
%span.update-author
assigned to
2012-02-18 13:12:48 +01:00
%strong= issue.assignee_name
2012-02-11 22:22:33 +01:00
- if issue.critical
%span.label.important critical
- if issue.today?
%span.label.success today
2012-01-29 11:04:09 +01:00
= link_to project_issue_path(issue.project, issue) do
%p.row_title= truncate(issue.title, :length => 60)
2012-01-29 11:04:09 +01:00