Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_discussion.html.haml « issues « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7c8af2f2c000e6bf2c713856b3a8a1cc8ea99fa (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
34
35
36
37
- content_for :note_actions do
  - if can?(current_user, :modify_issue, @issue)
    - if @issue.closed?
      = 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'
    - else
      = 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"
.row
  .col-md-9
    .participants
      %cite.cgray
        = pluralize(@issue.participants.count, 'participant')
      - @issue.participants.each do |participant|
        = link_to_member(@project, participant, name: false, size: 24)

    .voting_notes#notes= render "projects/notes/notes_with_form"
  .col-md-3
    %div
    .clearfix
      %span.slead.has_tooltip{:"data-original-title" => 'Cross-project reference'}
        = cross_project_reference(@project, @issue)
    %hr
    .context
      %cite.cgray
        = render partial: 'issue_context', locals: { issue: @issue }
    %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|
          = link_to namespace_project_issues_path(@project.namespace, @project, label_name: label.name) do
            %p= render_colored_label(label)