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

61 lines
2 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue) }
2015-09-11 14:41:01 +05:30
- if controller.controller_name == 'issues' && can?(current_user, :admin_issue, @project)
2014-09-02 18:07:02 +05:30
.issue-check
2015-09-11 14:41:01 +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_gfm issue.title, issue_path(issue)
%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
2016-06-02 11:05:42 +05:30
- note_count = issue.notes.user.nonawards.count
%li
= link_to issue_path(issue, anchor: 'notes'), class: ('issue-no-comments' if note_count.zero?) do
= 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|
= link_to_label(label, project: 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')}