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

show.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: 82f6b1193c789737c0e085ed01332352f9264bf2 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
%h3.page-title
  Issue ##{@issue.iid}

  %small
    created #{time_ago_with_tooltip(@issue.created_at)}

  - if @issue.closed?
    %span.state-label.state-label-red Closed
  - else
    %span.state-label.state-label-green Open

  %span.pull-right
    - if can?(current_user, :write_issue, @project)
      = link_to new_project_issue_path(@project), class: "btn grouped", title: "New Issue", id: "new_issue_link" do
        %i.icon-plus
        New Issue
    - if can?(current_user, :modify_issue, @issue)
      - if @issue.closed?
        = link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put,  class: "btn grouped reopen_issue"
      - else
        = link_to 'Close', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn grouped close_issue", title: "Close Issue"

      = link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do
        %i.icon-edit
        Edit

.votes-holder
  #votes= render 'votes/votes_block', votable: @issue

.back-link
  = link_to project_issues_path(@project) do
    ← To issues list
  %span.milestone-nav-link
    - if @issue.milestone
      |
      = link_to project_milestone_path(@project, @issue.milestone) do
        %span.light Milestone
        = @issue.milestone.title

.issue-box
  %h4.title
    = gfm escape_once(@issue.title)

  .context
    %cite.cgray
      = render partial: 'issue_context', locals: { issue: @issue }

  - if @issue.description.present?
    .description
      .wiki
        = preserve do
          = markdown @issue.description

- content_for :note_actions do
  - if can?(current_user, :modify_issue, @issue)
    - if @issue.closed?
      = link_to 'Reopen Issue', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put,  class: "btn grouped reopen_issue"
    - else
      = link_to 'Close Issue', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn grouped close_issue", title: "Close Issue"

.participants
  %cite.cgray #{@issue.participants.count} participants
  - @issue.participants.each do |participant|
    = link_to_member(@project, participant, name: false, size: 24)

  .issue-show-labels.pull-right
    - @issue.labels.each do |label|
      %span{class: "label #{label_css_class(label.name)}"}
        %i.icon-tag
        = label.name
       

.voting_notes#notes= render "projects/notes/notes_with_form"