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

40 lines
1.6 KiB
Plaintext
Raw Normal View History

%li{ id: dom_id(issue), class: issue_css_classes(issue), url: project_issue_path(issue.project, issue) }
- if controller.controller_name == 'issues'
.issue_check
= check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue)
2013-01-30 15:40:43 +01:00
.pull-right
- if issue.notes.any?
2013-01-29 21:29:21 +01:00
%span.btn.btn-small.disabled.grouped
2012-06-26 20:20:05 +02:00
%i.icon-comment
= issue.notes.count
- if can? current_user, :modify_issue, issue
2013-02-18 10:10:58 +01:00
- if issue.closed?
2013-02-18 13:49:56 +01:00
= link_to 'Reopen', project_issue_path(issue.project, issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-small grouped reopen_issue", remote: true
2012-01-29 11:04:09 +01:00
- else
2013-02-18 13:49:56 +01:00
= link_to 'Close', project_issue_path(issue.project, issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-small grouped close_issue", remote: true
2013-01-29 21:29:21 +01:00
= link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link grouped" do
2012-05-24 08:23:25 +02:00
%i.icon-edit
Edit
2012-06-26 20:47:25 +02:00
- if issue.assignee
= image_tag gravatar_icon(issue.assignee_email), class: "avatar"
2012-06-26 20:47:25 +02:00
- else
= image_tag "no_avatar.png", class: "avatar"
2012-06-26 20:47:25 +02:00
%p= link_to_gfm truncate(issue.title, length: 100), project_issue_path(issue.project, issue), class: "row_title"
2012-06-26 21:23:49 +02:00
%span.update-author
2012-12-14 06:34:05 +01:00
%span.cdark= "##{issue.id}"
2012-06-26 21:23:49 +02:00
- if issue.assignee
assigned to #{issue.assignee_name}
- else
 
2012-09-08 16:44:56 +02:00
- if issue.votes_count > 0
2012-09-10 15:27:14 +02:00
= render 'votes/votes_inline', votable: issue
%span
- issue.labels.each do |label|
%span.label
%i.icon-tag
= label.name