debian-mirror-gitlab/app/views/projects/issues/show.html.haml

52 lines
2.1 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "#{@issue.title} (##{@issue.iid})", "Issues"
2015-09-25 12:07:36 +05:30
= render "header_title"
2015-04-26 12:48:37 +05:30
.issue
2015-09-11 14:41:01 +05:30
.issue-details.issuable-details
2015-09-25 12:07:36 +05:30
.page-title
2015-04-26 12:48:37 +05:30
.issue-box{ class: issue_box_class(@issue) }
- if @issue.closed?
Closed
- else
Open
2015-09-25 12:07:36 +05:30
%span.issue-id Issue ##{@issue.iid}
%span.creator
· created by #{link_to_member(@project, @issue.author, size: 24)}
·
2015-09-11 14:41:01 +05:30
= time_ago_with_tooltip(@issue.created_at, placement: 'bottom', html_class: 'issue_created_ago')
- if @issue.updated_at != @issue.created_at
%span
·
= icon('edit', title: 'edited')
= time_ago_with_tooltip(@issue.updated_at, placement: 'bottom', html_class: 'issue_edited_ago')
2015-04-26 12:48:37 +05:30
.pull-right
2015-09-11 14:41:01 +05:30
- if can?(current_user, :create_issue, @project)
= link_to new_namespace_project_issue_path(@project.namespace, @project), class: 'btn btn-grouped new-issue-link', title: 'New Issue', id: 'new_issue_link' do
= icon('plus')
2015-04-26 12:48:37 +05:30
New Issue
2015-09-11 14:41:01 +05:30
- if can?(current_user, :update_issue, @issue)
2015-04-26 12:48:37 +05:30
- if @issue.closed?
2015-09-11 14:41:01 +05:30
= link_to 'Reopen', issue_path(@issue, issue: {state_event: :reopen}, status_only: true), method: :put, class: 'btn btn-grouped btn-reopen'
2015-04-26 12:48:37 +05:30
- else
2015-09-11 14:41:01 +05:30
= link_to 'Close', issue_path(@issue, issue: {state_event: :close}, status_only: true), method: :put, class: 'btn btn-grouped btn-close', title: 'Close Issue'
2015-04-26 12:48:37 +05:30
2015-09-11 14:41:01 +05:30
= link_to edit_namespace_project_issue_path(@project.namespace, @project, @issue), class: 'btn btn-grouped issuable-edit' do
= icon('pencil-square-o')
2015-04-26 12:48:37 +05:30
Edit
2015-09-25 12:07:36 +05:30
.gray-content-block.middle-block
%h2.issue-title
= gfm escape_once(@issue.title)
%div
- if @issue.description.present?
.description{class: can?(current_user, :update_issue, @issue) ? 'js-task-list-container' : ''}
.wiki
= preserve do
= markdown(@issue.description)
%textarea.hidden.js-task-list-field
= @issue.description
2015-04-26 12:48:37 +05:30
.issue-discussion
2015-09-11 14:41:01 +05:30
= render 'projects/issues/discussion'