_show.html.haml 1.63 KB
Newer Older
1
%li.wll{ id: dom_id(issue), class: issue_css_classes(issue), url: project_issue_path(issue.project, issue) }
2 3
  - if controller.controller_name == 'issues'
    .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)
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5
  .right
6
    - issue.labels.each do |label|
7
      %span.label.label-tag.grouped
8 9
        %i.icon-tag
        = label.name
10
    - if issue.notes.any?
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
11
      %span.btn.small.disabled.grouped
randx's avatar
randx committed
12 13
        %i.icon-comment
        = issue.notes.count
14
    - if can? current_user, :modify_issue, issue
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15
      - if issue.closed
16
        = link_to 'Reopen', project_issue_path(issue.project, issue, issue: {closed: false }, status_only: true), method: :put,  class: "btn small grouped reopen_issue", remote: true
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
17
      - else
18 19
        = link_to 'Resolve', project_issue_path(issue.project, issue, issue: {closed: true }, status_only: true), method: :put, class: "success btn small grouped close_issue", remote: true
      = link_to edit_project_issue_path(issue.project, issue), class: "btn small edit-issue-link", remote: true do
20 21 22
        %i.icon-edit
        Edit

randx's avatar
randx committed
23
  - if issue.assignee
24
    = image_tag gravatar_icon(issue.assignee_email), class: "avatar"
randx's avatar
randx committed
25
  - else
26
    = image_tag "no_avatar.png", class: "avatar"
randx's avatar
randx committed
27

28
  %p= link_to_gfm truncate(issue.title, length: 100), project_issue_path(issue.project, issue), class: "row_title"
randx's avatar
randx committed
29 30

  %span.update-author
31
    %small.cdark= "##{issue.id}"
randx's avatar
randx committed
32 33 34 35 36
    - if issue.assignee
      assigned to #{issue.assignee_name}
    - else
       

Riyad Preukschas's avatar
Riyad Preukschas committed
37
    - if issue.votes_count > 0
38
      = render 'votes/votes_inline', votable: issue