gitlab-org--gitlab-foss/app/views/projects/issues/_issue.html.haml

45 lines
1.7 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'
2013-04-06 12:10:24 +00:00
.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-04-06 12:10:24 +00:00
.issue-title
%span.light= "##{issue.id}"
= link_to_gfm truncate(issue.title, length: 100), project_issue_path(issue.project, issue), class: "row_title"
.issue-info
- if issue.assignee
assigned to #{link_to_member(@project, issue.assignee)}
- else
unassigned
- if issue.votes_count > 0
= render 'votes/votes_inline', votable: issue
- if issue.notes.any?
2013-04-06 12:10:24 +00:00
%span
%i.icon-comments
2012-06-26 18:20:05 +00:00
= issue.notes.count
- if issue.milestone
2013-04-06 12:10:24 +00:00
%span
%i.icon-time
= issue.milestone.title
.pull-right
%small updated #{time_ago_in_words(issue.updated_at)} ago
.issue-labels
- issue.labels.each do |label|
%span{class: "label #{label_css_class(label.name)}"}
2013-04-06 12:10:24 +00:00
%i.icon-tag
= label.name
.issue-actions
- if can? current_user, :modify_issue, issue
2013-02-18 09:10:58 +00:00
- if issue.closed?
2013-02-18 12:49:56 +00: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 10:04:09 +00:00
- else
2013-02-18 12:49:56 +00: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 20:29:21 +00:00
= link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link grouped" do
2012-05-24 06:23:25 +00:00
%i.icon-edit
Edit
2012-06-26 19:23:49 +00:00