2016-01-14 18:37:52 +05:30
|
|
|
- page_title "#{@issue.title} (##{@issue.iid})", "Issues"
|
|
|
|
- page_description @issue.description
|
|
|
|
- page_card_attributes @issue.card_attributes
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.clearfix.detail-page-header
|
|
|
|
.issuable-header
|
|
|
|
.issuable-status-box.status-box.status-box-closed{ class: issue_button_visibility(@issue, false) }
|
|
|
|
= icon('check', class: "hidden-sm hidden-md hidden-lg")
|
|
|
|
%span.hidden-xs
|
|
|
|
Closed
|
|
|
|
.issuable-status-box.status-box.status-box-open{ class: issue_button_visibility(@issue, true) }
|
|
|
|
= icon('circle-o', class: "hidden-sm hidden-md hidden-lg")
|
|
|
|
%span.hidden-xs Open
|
|
|
|
|
|
|
|
%a.btn.btn-default.pull-right.visible-xs-block.gutter-toggle.issuable-gutter-toggle.js-sidebar-toggle{ href: "#" }
|
|
|
|
= icon('angle-double-left')
|
|
|
|
|
|
|
|
.issuable-meta
|
|
|
|
= confidential_icon(@issue)
|
|
|
|
= issuable_meta(@issue, @project, "Issue")
|
|
|
|
|
|
|
|
- if can?(current_user, :create_issue, @project) || can?(current_user, :update_issue, @issue)
|
|
|
|
.issuable-actions
|
|
|
|
.clearfix.issue-btn-group.dropdown
|
|
|
|
%button.btn.btn-default.pull-left.hidden-md.hidden-lg{ data: { toggle: "dropdown" } }
|
|
|
|
%span.caret
|
|
|
|
Options
|
|
|
|
.dropdown-menu.dropdown-menu-align-right.hidden-lg
|
|
|
|
%ul
|
|
|
|
- if can?(current_user, :create_issue, @project)
|
|
|
|
%li
|
|
|
|
= link_to 'New issue', new_namespace_project_issue_path(@project.namespace, @project), title: 'New issue', id: 'new_issue_link'
|
|
|
|
- if can?(current_user, :update_issue, @issue)
|
|
|
|
%li
|
|
|
|
= link_to 'Reopen issue', issue_path(@issue, issue: { state_event: :reopen }, status_only: true, format: 'json'), data: {no_turbolink: true}, class: "btn-reopen #{issue_button_visibility(@issue, false)}", title: 'Reopen issue'
|
|
|
|
%li
|
|
|
|
= link_to 'Close issue', issue_path(@issue, issue: { state_event: :close }, status_only: true, format: 'json'), data: {no_turbolink: true}, class: "btn-close #{issue_button_visibility(@issue, true)}", title: 'Close issue'
|
|
|
|
%li
|
|
|
|
= link_to 'Edit', edit_namespace_project_issue_path(@project.namespace, @project, @issue)
|
2016-09-13 17:45:13 +05:30
|
|
|
- if @issue.submittable_as_spam? && current_user.admin?
|
|
|
|
%li
|
|
|
|
= link_to 'Submit as spam', mark_as_spam_namespace_project_issue_path(@project.namespace, @project, @issue), method: :post, class: 'btn-spam', title: 'Submit as spam'
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if can?(current_user, :create_issue, @project)
|
2016-09-13 17:45:13 +05:30
|
|
|
= link_to new_namespace_project_issue_path(@project.namespace, @project), class: 'hidden-xs hidden-sm btn btn-grouped new-issue-link btn-new btn-inverted', title: 'New issue', id: 'new_issue_link' do
|
2016-06-02 11:05:42 +05:30
|
|
|
New issue
|
|
|
|
- if can?(current_user, :update_issue, @issue)
|
2016-06-16 23:09:34 +05:30
|
|
|
= link_to 'Reopen issue', issue_path(@issue, issue: { state_event: :reopen }, status_only: true, format: 'json'), data: {no_turbolink: true}, class: "hidden-xs hidden-sm btn 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: "hidden-xs hidden-sm btn btn-grouped btn-close #{issue_button_visibility(@issue, true)}", title: 'Close issue'
|
2016-09-13 17:45:13 +05:30
|
|
|
- if @issue.submittable_as_spam? && current_user.admin?
|
|
|
|
= link_to 'Submit as spam', mark_as_spam_namespace_project_issue_path(@project.namespace, @project, @issue), method: :post, class: 'hidden-xs hidden-sm btn btn-grouped btn-spam', title: 'Submit as spam'
|
|
|
|
= link_to 'Edit', edit_namespace_project_issue_path(@project.namespace, @project, @issue), class: 'hidden-xs hidden-sm btn btn-grouped issuable-edit'
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
|
|
|
|
.issue-details.issuable-details
|
|
|
|
.detail-page-description.content-block
|
|
|
|
%h2.title
|
2016-06-16 23:09:34 +05:30
|
|
|
= markdown escape_once(@issue.title), pipeline: :single_line, author: @issue.author
|
2016-06-02 11:05:42 +05:30
|
|
|
- if @issue.description.present?
|
|
|
|
.description{ class: can?(current_user, :update_issue, @issue) ? 'js-task-list-container' : '' }
|
|
|
|
.wiki
|
|
|
|
= preserve do
|
2016-06-16 23:09:34 +05:30
|
|
|
= markdown(@issue.description, cache_key: [@issue, "description"], author: @issue.author)
|
2016-06-02 11:05:42 +05:30
|
|
|
%textarea.hidden.js-task-list-field
|
|
|
|
= @issue.description
|
|
|
|
= edited_time_ago_with_tooltip(@issue, placement: 'bottom', html_class: 'issue_edited_ago')
|
|
|
|
|
|
|
|
#merge-requests{ data: { url: referenced_merge_requests_namespace_project_issue_url(@project.namespace, @project, @issue) } }
|
|
|
|
// This element is filled in using JavaScript.
|
|
|
|
|
|
|
|
#related-branches{ data: { url: related_branches_namespace_project_issue_url(@project.namespace, @project, @issue) } }
|
|
|
|
// This element is filled in using JavaScript.
|
|
|
|
|
|
|
|
.content-block.content-block-small
|
|
|
|
= render 'new_branch'
|
2016-06-16 23:09:34 +05:30
|
|
|
= render 'award_emoji/awards_block', awardable: @issue, inline: true
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
%section.issuable-discussion
|
|
|
|
= render 'projects/issues/discussion'
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
= render 'shared/issuable/sidebar', issuable: @issue
|