2015-12-24 17:03:54 -05:00
|
|
|
- page_title "#{@issue.title} (##{@issue.iid})", "Issues"
|
|
|
|
- page_description @issue.description
|
|
|
|
- page_card_attributes @issue.card_attributes
|
2015-12-23 16:56:27 -05:00
|
|
|
|
2015-09-17 06:16:24 -04:00
|
|
|
= render "header_title"
|
|
|
|
|
2015-02-17 19:14:49 -05:00
|
|
|
.issue
|
2016-02-29 15:13:00 -05:00
|
|
|
.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
|
|
|
|
=icon('check')
|
|
|
|
.status-box{ class: "status-box-open #{issue_button_visibility(@issue, true)}"}
|
|
|
|
%span.hidden-xs
|
|
|
|
Open
|
|
|
|
%span.hidden-sm.hidden-md.hidden-lg
|
|
|
|
=icon('circle-o')
|
|
|
|
|
|
|
|
.issue-meta
|
|
|
|
%strong.identifier
|
|
|
|
Issue ##{@issue.iid}
|
|
|
|
%span.creator
|
|
|
|
by
|
|
|
|
.editor-details
|
|
|
|
%strong
|
|
|
|
=link_to_member(@project, @issue.author, size: 24, mobile_classes: "hidden-xs")
|
|
|
|
=link_to_member(@project, @issue.author, size: 24,
|
|
|
|
by_username: true, avatar: false)
|
|
|
|
= time_ago_with_tooltip(@issue.created_at, placement: 'bottom', html_class: 'issue_created_ago')
|
|
|
|
|
|
|
|
.pull-right.issue-btn-group
|
2015-12-16 10:13:22 -05:00
|
|
|
- if can?(current_user, :create_issue, @project)
|
2016-02-18 17:32:38 -05:00
|
|
|
= 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-16 10:13:22 -05:00
|
|
|
= icon('plus')
|
2016-02-18 17:32:38 -05:00
|
|
|
New issue
|
2015-12-16 10:13:22 -05:00
|
|
|
- if can?(current_user, :update_issue, @issue)
|
2016-02-18 17:32:38 -05:00
|
|
|
= 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'
|
2014-12-25 07:32:49 -05:00
|
|
|
|
2015-12-23 09:46:13 -05:00
|
|
|
= link_to edit_namespace_project_issue_path(@project.namespace, @project, @issue), class: 'btn btn-nr btn-grouped issuable-edit' do
|
2015-12-16 10:13:22 -05:00
|
|
|
= icon('pencil-square-o')
|
|
|
|
Edit
|
2013-12-19 12:36:27 -05:00
|
|
|
|
2016-02-15 16:29:22 -05:00
|
|
|
|
2015-12-16 10:13:22 -05:00
|
|
|
.issue-details.issuable-details
|
2016-01-22 19:15:32 -05:00
|
|
|
.detail-page-description.content-block
|
2015-12-17 04:34:15 -05:00
|
|
|
%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
|
2016-02-04 19:53:54 -05:00
|
|
|
- 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-17 04:34:15 -05:00
|
|
|
|
2016-02-11 11:17:45 -05:00
|
|
|
.merge-requests
|
|
|
|
= render 'merge_requests'
|
2015-12-17 04:34:15 -05:00
|
|
|
|
2016-01-22 19:15:32 -05:00
|
|
|
.content-block
|
2015-12-17 04:34:15 -05:00
|
|
|
= render 'votes/votes_block', votable: @issue
|
|
|
|
|
2015-12-10 13:03:48 -05:00
|
|
|
.row
|
2016-01-27 17:38:19 -05:00
|
|
|
%section.col-md-12
|
2015-12-17 04:34:15 -05:00
|
|
|
.issuable-discussion
|
2015-12-10 13:03:48 -05:00
|
|
|
= render 'projects/issues/discussion'
|
2016-01-27 17:38:19 -05:00
|
|
|
|
2016-02-11 11:17:45 -05:00
|
|
|
= render 'shared/issuable/sidebar', issuable: @issue
|