debian-mirror-gitlab/app/views/projects/issues/_issue.html.haml

61 lines
1.9 KiB
Text
Raw Normal View History

%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue), data: { labels: issue.label_ids, id: issue.id } }
2016-09-29 09:46:39 +05:30
- if @bulk_edit
2014-09-02 18:07:02 +05:30
.issue-check
2016-09-29 09:46:39 +05:30
= check_box_tag dom_id(issue, "selected"), nil, false, 'data-id' => issue.id, class: "selected_issue"
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
.issue-title.title
2015-09-11 14:41:01 +05:30
%span.issue-title-text
2016-06-02 11:05:42 +05:30
= confidential_icon(issue)
= link_to issue.title, issue_path(issue)
2016-06-02 11:05:42 +05:30
%ul.controls
2015-04-26 12:48:37 +05:30
- if issue.closed?
2015-12-23 02:04:40 +05:30
%li
2015-04-26 12:48:37 +05:30
CLOSED
2015-12-23 02:04:40 +05:30
2015-09-11 14:41:01 +05:30
- if issue.assignee
2015-12-23 02:04:40 +05:30
%li
= link_to_member(@project, issue.assignee, name: false, title: "Assigned to :name")
2016-04-02 18:10:28 +05:30
- upvotes, downvotes = issue.upvotes, issue.downvotes
- if upvotes > 0
%li
= icon('thumbs-up')
= upvotes
- if downvotes > 0
%li
= icon('thumbs-down')
= downvotes
- note_count = issue.notes.user.count
2016-06-02 11:05:42 +05:30
%li
2016-09-29 09:46:39 +05:30
= link_to issue_path(issue, anchor: 'notes'), class: ('no-comments' if note_count.zero?) do
2016-06-02 11:05:42 +05:30
= icon('comments')
= note_count
2014-09-02 18:07:02 +05:30
.issue-info
2015-12-23 02:04:40 +05:30
#{issue.to_reference} ·
opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')}
by #{link_to_member(@project, issue.author, avatar: false)}
2014-09-02 18:07:02 +05:30
- if issue.milestone
2015-09-11 14:41:01 +05:30
 
2015-12-23 02:04:40 +05:30
= link_to namespace_project_issues_path(issue.project.namespace, issue.project, milestone_title: issue.milestone.title) do
= icon('clock-o')
2014-09-02 18:07:02 +05:30
= issue.milestone.title
2016-06-02 11:05:42 +05:30
- if issue.due_date
%span{class: "#{'cred' if issue.overdue?}"}
 
= icon('calendar')
= issue.due_date.to_s(:medium)
2015-12-23 02:04:40 +05:30
- if issue.labels.any?
 
- issue.labels.each do |label|
2016-11-03 12:29:30 +05:30
= link_to_label(label, subject: issue.project)
2015-04-26 12:48:37 +05:30
- if issue.tasks?
2015-12-23 02:04:40 +05:30
 
2015-04-26 12:48:37 +05:30
%span.task-status
= issue.task_status
.pull-right.issue-updated-at
2015-09-25 12:07:36 +05:30
%span updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}