BigW Consortium Gitlab

_issue.html.haml 1.51 KB
Newer Older
1
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue) }
2
  - if controller.controller_name == 'issues' && can?(current_user, :admin_issue, @project)
3
    .issue-check
4
      = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue"
5

Valery Sizov committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
  .issue-title
    %span.issue-title-text
      = link_to_gfm issue.title, issue_path(issue), class: "row_title"
    .issue-labels
      - issue.labels.each do |label|
        = link_to_label(label, project: issue.project)
    .pull-right.light
      - if issue.closed?
        %span
          CLOSED
      - if issue.assignee
        = link_to_member(@project, issue.assignee, name: false)
      - note_count = issue.notes.user.count
      - if note_count > 0
20 21
         
        %span
Valery Sizov committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
          %i.fa.fa-comments
          = note_count
      - else
         
        %span.issue-no-comments
          %i.fa.fa-comments
          = 0

  .issue-info
    = "#{issue.to_reference} opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')} by #{link_to_member(@project, issue.author, avatar: false)}".html_safe
    - if issue.votes_count > 0
      = render 'votes/votes_inline', votable: issue
    - if issue.milestone
       
      %span
        %i.fa.fa-clock-o
        = issue.milestone.title
    - if issue.tasks?
      %span.task-status
        = issue.task_status
42

Valery Sizov committed
43
    .pull-right.issue-updated-at
44
      %span updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}