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

_issue.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: 998e74d12cf8539b7fd7a5e9597da79de5c04cb5 (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
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue) }
  - if controller.controller_name == 'issues'
    .issue-check
      = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue)

  .issue-title
    %span.str-truncated
      = link_to_gfm issue.title, issue_path(issue), class: "row_title"
    .pull-right.light
      - if issue.closed?
        %span
          CLOSED
      - note_count = issue.notes.user.count
      - if note_count > 0
         
        %span
          %i.fa.fa-comments
          = note_count

  .issue-info
    = link_to "##{issue.iid}", issue_path(issue), class: "light"
    - if issue.assignee
      assigned to #{link_to_member(@project, issue.assignee)}
    - if issue.votes_count > 0
      = render 'votes/votes_inline', votable: issue
    - if issue.milestone
      %span
        %i.fa.fa-clock-o
        = issue.milestone.title
    - if issue.tasks?
      %span.task-status
        = issue.task_status

    .pull-right.issue-updated-at
      %small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')}

    .issue-labels
      - issue.labels.each do |label|
        = link_to namespace_project_issues_path(issue.project.namespace, issue.project, label_name: label.name) do
          = render_colored_label(label)

  .issue-actions
    - if can? current_user, :modify_issue, issue
      - if issue.closed?
        = link_to 'Reopen', issue_path(issue, issue: {state_event: :reopen }, status_only: true), method: :put,  class: "btn btn-sm btn-grouped reopen_issue btn-reopen", remote: true
      - else
        = link_to 'Close', issue_path(issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-sm btn-grouped close_issue btn-close", remote: true
      = link_to edit_namespace_project_issue_path(issue.project.namespace, issue.project, issue), class: "btn btn-sm edit-issue-link btn-grouped" do
        %i.fa.fa-pencil-square-o
        Edit