gitlabhq/app/views/issues/_show.html.haml
2012-06-27 21:20:35 +03:00

41 lines
1.4 KiB
Plaintext

%li.wll{ :id => dom_id(issue), :class => issue_css_classes(issue), :url => project_issue_path(issue.project, issue) }
.list_legend
.icon
.right
- issue.labels.each do |label|
%span.label.label-issue
%i.icon-tag
= label.name
 
- if issue.notes.any?
%span.btn.small.disabled.padded
%i.icon-comment
= issue.notes.count
- if can? current_user, :modify_issue, issue
- if issue.closed
= link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small padded", :remote => true
- else
= link_to 'Resolve', project_issue_path(issue.project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "success btn small padded", :remote => true
= link_to edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true do
%i.icon-edit
Edit
- if issue.assignee
= image_tag gravatar_icon(issue.assignee_email), :class => "avatar"
- else
= image_tag "no_avatar.png", :class => "avatar"
= link_to project_issue_path(issue.project, issue) do
%p.row_title= truncate(issue.title, :length => 100)
%span.update-author
- if issue.assignee
assigned to #{issue.assignee_name}
- else
 
- if issue.upvotes > 0
%span.badge.badge-success= "+#{issue.upvotes}"