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

48 lines
1.8 KiB
Text
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 08:10:24 -04: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 08:10:24 -04:00
.issue-title
2013-08-19 15:12:40 -04:00
%span.light= "##{issue.iid}"
2013-04-06 08:10:24 -04:00
= link_to_gfm truncate(issue.title, length: 100), project_issue_path(issue.project, issue), class: "row_title"
- if issue.closed?
%small.pull-right
= "CLOSED"
2013-04-06 08:10:24 -04:00
.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 08:10:24 -04:00
%span
%i.icon-comments
2012-06-26 14:20:05 -04:00
= issue.notes.count
- if issue.milestone
2013-04-06 08:10:24 -04:00
%span
%i.icon-time
= issue.milestone.title
.pull-right
%small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')} ago
2013-04-06 08:10:24 -04:00
.issue-labels
- issue.labels.each do |label|
%span{class: "label #{label_css_class(label.name)}"}
2013-04-06 08:10:24 -04:00
%i.icon-tag
= label.name
.issue-actions
- if can? current_user, :modify_issue, issue
2013-02-18 04:10:58 -05:00
- if issue.closed?
2013-02-18 07:49:56 -05: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 05:04:09 -05:00
- else
2013-02-18 07:49:56 -05: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 15:29:21 -05:00
= link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link grouped" do
2012-05-24 02:23:25 -04:00
%i.icon-edit
Edit
2012-06-26 15:23:49 -04:00