_issue.html.haml 1.5 KB
Newer Older
1
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue) }
R
randx 已提交
2
  - if controller.controller_name == 'issues'
D
Dmitriy Zaporozhets 已提交
3
    .issue-check
4
      = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue)
D
Dmitriy Zaporozhets 已提交
5 6

  .issue-title
7
    %span.str-truncated
8
      = link_to_gfm issue.title, issue_path(issue), class: "row_title"
S
Stefan Tatschner 已提交
9 10
    .issue-labels
      - issue.labels.each do |label|
R
Robert Speicher 已提交
11
        = link_to_label(label, project: issue.project)
D
Dmitriy Zaporozhets 已提交
12
    .pull-right.light
13 14 15
      - if issue.closed?
        %span
          CLOSED
S
Stefan Tatschner 已提交
16 17
      - if issue.assignee
        = link_to_member(@project, issue.assignee, name: false)
18 19
      - note_count = issue.notes.user.count
      - if note_count > 0
20 21 22
         
        %span
          %i.fa.fa-comments
23
          = note_count
S
Stefan Tatschner 已提交
24 25 26 27 28
      - else
         
        %span.issue-no-comments
          %i.fa.fa-comments
          = 0
D
Dmitriy Zaporozhets 已提交
29 30

  .issue-info
S
Stefan Tatschner 已提交
31
    = "##{issue.iid} opened #{time_ago_with_tooltip(issue.created_at, 'bottom')} by #{link_to_member(@project, issue.author, avatar: false)}".html_safe
D
Dmitriy Zaporozhets 已提交
32 33
    - if issue.votes_count > 0
      = render 'votes/votes_inline', votable: issue
34
    - if issue.milestone
S
Stefan Tatschner 已提交
35
       
D
Dmitriy Zaporozhets 已提交
36
      %span
S
Sullivan SENECHAL 已提交
37
        %i.fa.fa-clock-o
D
Dmitriy Zaporozhets 已提交
38
        = issue.milestone.title
39 40 41 42
    - if issue.tasks?
      %span.task-status
        = issue.task_status

43
    .pull-right.issue-updated-at
44
      %small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')}