_discussion.html.haml 1.55 KB
Newer Older
1 2 3
- content_for :note_actions do
  - if can?(current_user, :modify_issue, @issue)
    - if @issue.closed?
Vinnie Okada's avatar
Vinnie Okada committed
4
      = link_to 'Reopen Issue', namespace_project_issue_path(@project.namespace, @project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-grouped btn-reopen js-note-target-reopen", title: 'Reopen Issue'
5
    - else
Vinnie Okada's avatar
Vinnie Okada committed
6
      = link_to 'Close Issue', namespace_project_issue_path(@project.namespace, @project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-grouped btn-close js-note-target-close", title: "Close Issue"
7
.row
8
  .col-md-9
9
    .participants
10
      %span= pluralize(@issue.participants.count, 'participant')
11 12 13 14
      - @issue.participants.each do |participant|
        = link_to_member(@project, participant, name: false, size: 24)

    .voting_notes#notes= render "projects/notes/notes_with_form"
15
  .col-md-3
16 17 18 19
    .issuable-affix
      .clearfix
        %span.slead.has_tooltip{:"data-original-title" => 'Cross-project reference'}
          = cross_project_reference(@project, @issue)
20
      %hr
21
      .context
22
        = render partial: 'issue_context', locals: { issue: @issue }
23 24 25 26 27 28 29 30 31 32 33
      %hr
      .clearfix
        .votes-holder
          %h6 Votes
          #votes= render 'votes/votes_block', votable: @issue

      - if @issue.labels.any?
        %hr
        %h6 Labels
        .issue-show-labels
          - @issue.labels.each do |label|
34
            = link_to namespace_project_issues_path(@project.namespace, @project, label_name: label.name) do
35
              = render_colored_label(label)