2014-12-25 07:32:49 -05:00
|
|
|
%h4.page-title
|
2014-12-18 10:22:10 -05:00
|
|
|
.issue-box{ class: issue_box_class(@issue) }
|
2013-02-25 16:10:50 -05:00
|
|
|
- if @issue.closed?
|
2014-12-18 10:22:10 -05:00
|
|
|
Closed
|
2013-02-25 16:10:50 -05:00
|
|
|
- else
|
2014-12-18 10:22:10 -05:00
|
|
|
Open
|
|
|
|
Issue ##{@issue.iid}
|
2014-12-25 07:32:49 -05:00
|
|
|
%small.creator
|
|
|
|
· created by #{link_to_member(@project, @issue.author)} #{issue_timestamp(@issue)}
|
|
|
|
|
|
|
|
.pull-right
|
|
|
|
- if can?(current_user, :write_issue, @project)
|
|
|
|
= link_to new_project_issue_path(@project), class: "btn btn-grouped", title: "New Issue", id: "new_issue_link" do
|
|
|
|
%i.fa.fa-plus
|
|
|
|
New Issue
|
|
|
|
- if can?(current_user, :modify_issue, @issue)
|
|
|
|
- if @issue.closed?
|
|
|
|
= link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-grouped btn-reopen"
|
|
|
|
- else
|
|
|
|
= link_to 'Close', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-grouped btn-close", title: "Close Issue"
|
2013-05-09 19:37:47 -04:00
|
|
|
|
2014-12-25 07:32:49 -05:00
|
|
|
= link_to edit_project_issue_path(@project, @issue), class: "btn btn-grouped issuable-edit" do
|
|
|
|
%i.fa.fa-pencil-square-o
|
|
|
|
Edit
|
2013-12-19 12:36:27 -05:00
|
|
|
|
2014-12-25 07:32:49 -05:00
|
|
|
%hr
|
|
|
|
%h3.issue-title
|
|
|
|
= gfm escape_once(@issue.title)
|
|
|
|
%div
|
|
|
|
- if @issue.description.present?
|
|
|
|
.description
|
|
|
|
.wiki
|
|
|
|
= preserve do
|
|
|
|
= markdown(@issue.description, parse_tasks: true)
|
|
|
|
|
|
|
|
%hr
|
|
|
|
= render "projects/issues/discussion"
|