BigW Consortium Gitlab

show.html.haml 3.33 KB
Newer Older
1 2 3
- page_title           "#{@issue.title} (##{@issue.iid})", "Issues"
- page_description     @issue.description
- page_card_attributes @issue.card_attributes
4

5 6
= render "header_title"

7
.issue
8 9 10 11 12 13
  .detail-page-header.issuable-header
    .pull-left
      .status-box{ class: "status-box-closed #{issue_button_visibility(@issue, false)}"}
        %span.hidden-xs
          Closed
        %span.hidden-sm.hidden-md.hidden-lg
14
          = icon('check')
15 16 17 18
      .status-box{ class: "status-box-open #{issue_button_visibility(@issue, true)}"}
        %span.hidden-xs
          Open
        %span.hidden-sm.hidden-md.hidden-lg
19
          = icon('circle-o')
20

21
    %a.btn.btn-default.pull-right.visible-xs-block.gutter-toggle.js-sidebar-toggle{ href: "#" }
22
      = icon('angle-double-left')
23

24
    .issue-meta
25
      = confidential_icon(@issue)
26 27 28
      %strong.identifier
        Issue ##{@issue.iid}
      %span.creator
29
        opened
30
        .editor-details
31
          .editor-details
32 33
            = time_ago_with_tooltip(@issue.created_at)
            by
34
            %strong
35
              = link_to_member(@project, @issue.author, size: 24, mobile_classes: "hidden-xs")
36
            %strong
37
              = link_to_member(@project, @issue.author, size: 24, mobile_classes: "hidden-sm hidden-md hidden-lg",
38
                by_username: true, avatar: false)
39 40

    .pull-right.issue-btn-group
41
      - if can?(current_user, :create_issue, @project)
42
        = link_to new_namespace_project_issue_path(@project.namespace, @project), class: 'btn btn-nr btn-grouped new-issue-link btn-success', title: 'New issue', id: 'new_issue_link' do
43
          = icon('plus')
44
          New issue
45
      - if can?(current_user, :update_issue, @issue)
46 47
        = link_to 'Reopen issue', issue_path(@issue, issue: {state_event: :reopen}, status_only: true, format: 'json'), data: {no_turbolink: true}, class: "btn btn-nr btn-grouped btn-reopen #{issue_button_visibility(@issue, false)}", title: 'Reopen issue'
        = link_to 'Close issue', issue_path(@issue, issue: {state_event: :close}, status_only: true, format: 'json'), data: {no_turbolink: true}, class: "btn btn-nr btn-grouped btn-close #{issue_button_visibility(@issue, true)}", title: 'Close issue'
Andriy Dyadyura committed
48
        = link_to edit_namespace_project_issue_path(@project.namespace, @project, @issue), class: 'btn btn-nr btn-grouped issuable-edit' do
49 50
          = icon('pencil-square-o')
          Edit
51

52

53
  .issue-details.issuable-details
54
    .detail-page-description.content-block
55 56 57 58 59 60 61 62 63 64
      %h2.title
        = markdown escape_once(@issue.title), pipeline: :single_line
      %div
        - if @issue.description.present?
          .description{class: can?(current_user, :update_issue, @issue) ? 'js-task-list-container' : ''}
            .wiki
              = preserve do
                = markdown(@issue.description, cache_key: [@issue, "description"])
            %textarea.hidden.js-task-list-field
              = @issue.description
65
      = edited_time_ago_with_tooltip(@issue, placement: 'bottom', html_class: 'issue_edited_ago')
66

67 68
      .merge-requests
        = render 'merge_requests'
69
        = render 'related_branches'
70

71
    .content-block.content-block-small
72
      = render 'new_branch'
73 74
      = render 'votes/votes_block', votable: @issue

75
    .row
76
      %section.col-md-12
77
        .issuable-discussion
78
          = render 'projects/issues/discussion'
79

80
= render 'shared/issuable/sidebar', issuable: @issue