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
|
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
= render "header_title"
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.issue
|
2015-12-23 02:04:40 +05:30
|
|
|
.detail-page-header
|
|
|
|
.pull-right
|
|
|
|
- if can?(current_user, :create_issue, @project)
|
2016-01-14 18:37:52 +05:30
|
|
|
= 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
|
2015-12-23 02:04:40 +05:30
|
|
|
= icon('plus')
|
|
|
|
New Issue
|
|
|
|
- if can?(current_user, :update_issue, @issue)
|
2016-01-14 18:37:52 +05:30
|
|
|
= link_to 'Reopen', 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_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'
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
= link_to edit_namespace_project_issue_path(@project.namespace, @project, @issue), class: 'btn btn-nr btn-grouped issuable-edit' do
|
2015-12-23 02:04:40 +05:30
|
|
|
= icon('pencil-square-o')
|
|
|
|
Edit
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
.pull-left
|
|
|
|
.status-box{ class: "status-box-closed #{issue_button_visibility(@issue, false)}"} Closed
|
|
|
|
.status-box{ class: "status-box-open #{issue_button_visibility(@issue, true)}"} Open
|
|
|
|
|
|
|
|
.issue-meta
|
|
|
|
%span.identifier
|
|
|
|
Issue ##{@issue.iid}
|
|
|
|
%span.creator
|
|
|
|
·
|
|
|
|
by #{link_to_member(@project, @issue.author, size: 24)}
|
|
|
|
·
|
|
|
|
= time_ago_with_tooltip(@issue.created_at, placement: 'bottom', html_class: 'issue_created_ago')
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
.issue-details.issuable-details
|
2016-04-02 18:10:28 +05:30
|
|
|
.detail-page-description.content-block
|
2015-12-23 02:04:40 +05:30
|
|
|
%h2.title
|
|
|
|
= markdown escape_once(@issue.title), pipeline: :single_line
|
2015-09-25 12:07:36 +05:30
|
|
|
%div
|
|
|
|
- if @issue.description.present?
|
|
|
|
.description{class: can?(current_user, :update_issue, @issue) ? 'js-task-list-container' : ''}
|
|
|
|
.wiki
|
|
|
|
= preserve do
|
2015-12-23 02:04:40 +05:30
|
|
|
= markdown(@issue.description, cache_key: [@issue, "description"])
|
2015-09-25 12:07:36 +05:30
|
|
|
%textarea.hidden.js-task-list-field
|
|
|
|
= @issue.description
|
2016-04-02 18:10:28 +05:30
|
|
|
- if @issue.updated_at != @issue.created_at
|
|
|
|
%small
|
|
|
|
Edited
|
|
|
|
= time_ago_with_tooltip(@issue.updated_at, placement: 'bottom', html_class: 'issue_edited_ago')
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
.merge-requests
|
|
|
|
= render 'merge_requests'
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
.content-block
|
2015-12-23 02:04:40 +05:30
|
|
|
= render 'votes/votes_block', votable: @issue
|
|
|
|
|
|
|
|
.row
|
2016-04-02 18:10:28 +05:30
|
|
|
%section.col-md-12
|
2015-12-23 02:04:40 +05:30
|
|
|
.issuable-discussion
|
|
|
|
= render 'projects/issues/discussion'
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
= render 'shared/issuable/sidebar', issuable: @issue
|