summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_discussion.html.haml
blob: 656e06ca105c699629899661f54b0e3da73b657e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
- content_for :note_actions do
  - if can?(current_user, :modify_issue, @issue)
    - if @issue.closed?
      = link_to 'Reopen Issue', issue_path(@issue, issue: {state_event: :reopen}, status_only: true), method: :put, class: 'btn btn-grouped btn-reopen js-note-target-reopen', title: 'Reopen Issue'
    - else
      = link_to 'Close Issue', issue_path(@issue, issue: {state_event: :close}, status_only: true), method: :put, class: 'btn btn-grouped btn-close js-note-target-close', title: 'Close Issue'

= render 'shared/show_aside'

.row
  %section.col-md-9
    .votes-holder.pull-right
      #votes= render 'votes/votes_block', votable: @issue
    .participants
      %span= pluralize(@participants.count, 'participant')
      - @participants.each do |participant|
        = link_to_member(@project, participant, name: false, size: 24)
    .voting_notes#notes= render 'projects/notes/notes_with_form'
  %aside.col-md-3
    .issuable-affix
      .clearfix
        %span.slead.has_tooltip{title: 'Cross-project reference'}
          = cross_project_reference(@project, @issue)
      %hr
      .context
        = render partial: 'issue_context', locals: { issue: @issue }

      - if @issue.labels.any?
        .issuable-context-title
          %label Labels
        .issue-show-labels
          - @issue.labels.each do |label|
            = link_to_label(label)