2012-06-30 23:35:24 +02:00
|
|
|
%h3.page_title
|
2012-03-25 18:05:24 +02:00
|
|
|
Issue ##{@issue.id}
|
2012-06-26 18:08:44 +02:00
|
|
|
|
2012-01-29 22:59:12 +01:00
|
|
|
%small
|
2012-06-04 00:37:27 +02:00
|
|
|
created at
|
2012-01-29 22:59:12 +01:00
|
|
|
= @issue.created_at.stamp("Aug 21, 2011")
|
2012-01-29 11:04:09 +01:00
|
|
|
|
2013-01-30 15:40:43 +01:00
|
|
|
%span.pull-right
|
2013-02-25 22:10:50 +01:00
|
|
|
- if can?(current_user, :modify_issue, @issue)
|
2013-02-18 10:10:58 +01:00
|
|
|
- if @issue.closed?
|
2013-02-18 13:49:56 +01:00
|
|
|
= link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn grouped reopen_issue"
|
2012-01-29 11:04:09 +01:00
|
|
|
- else
|
2013-02-18 13:49:56 +01:00
|
|
|
= link_to 'Close', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn grouped close_issue", title: "Close Issue"
|
2013-02-25 22:10:50 +01:00
|
|
|
|
2012-09-08 16:00:38 +02:00
|
|
|
= link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do
|
2012-05-24 08:23:25 +02:00
|
|
|
%i.icon-edit
|
2013-02-26 09:17:09 +01:00
|
|
|
Edit
|
2012-01-29 11:04:09 +01:00
|
|
|
|
2013-01-30 15:40:43 +01:00
|
|
|
.pull-right
|
2012-09-10 15:27:14 +02:00
|
|
|
.span3#votes= render 'votes/votes_block', votable: @issue
|
2012-02-18 13:12:48 +01:00
|
|
|
|
2012-03-25 18:05:24 +02:00
|
|
|
.back_link
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to project_issues_path(@project) do
|
2012-03-25 18:05:24 +02:00
|
|
|
← To issues list
|
2012-02-18 13:12:48 +01:00
|
|
|
|
2012-09-08 16:44:56 +02:00
|
|
|
|
2013-01-04 22:35:31 +01:00
|
|
|
.ui-box.ui-box-show
|
|
|
|
.ui-box-head
|
2012-12-13 04:14:05 +01:00
|
|
|
%h4.box-title
|
2013-02-18 10:10:58 +01:00
|
|
|
- if @issue.closed?
|
2012-12-13 04:14:05 +01:00
|
|
|
.error.status_info Closed
|
2012-09-20 02:21:12 +02:00
|
|
|
= gfm escape_once(@issue.title)
|
2012-03-14 14:31:31 +01:00
|
|
|
|
2013-01-04 22:35:31 +01:00
|
|
|
.ui-box-body
|
2012-12-13 04:14:05 +01:00
|
|
|
%cite.cgray
|
|
|
|
Created by #{link_to_member(@project, @issue.author)}
|
|
|
|
- if @issue.assignee
|
|
|
|
\ and currently assigned to #{link_to_member(@project, @issue.assignee)}
|
2012-04-16 23:22:59 +02:00
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
- if @issue.milestone
|
2012-04-16 23:22:59 +02:00
|
|
|
- milestone = @issue.milestone
|
2012-06-04 00:37:27 +02:00
|
|
|
%cite.cgray and attached to milestone
|
2012-08-11 00:07:50 +02:00
|
|
|
%strong= link_to_gfm truncate(milestone.title, length: 20), project_milestone_path(milestone.project, milestone)
|
2012-06-04 00:37:27 +02:00
|
|
|
|
2013-01-30 15:40:43 +01:00
|
|
|
.pull-right
|
2012-06-27 20:20:35 +02:00
|
|
|
- @issue.labels.each do |label|
|
2013-01-08 06:14:05 +01:00
|
|
|
%span.label
|
2012-06-27 20:20:35 +02:00
|
|
|
%i.icon-tag
|
|
|
|
= label.name
|
|
|
|
|
2012-06-26 18:08:44 +02:00
|
|
|
|
2012-03-28 09:46:51 +02:00
|
|
|
- if @issue.description.present?
|
2013-01-04 22:35:31 +01:00
|
|
|
.ui-box-bottom
|
2013-01-10 17:09:12 +01:00
|
|
|
.wiki
|
|
|
|
= preserve do
|
|
|
|
= markdown @issue.description
|
2012-01-29 11:04:09 +01:00
|
|
|
|
2013-02-25 22:10:50 +01:00
|
|
|
- content_for :note_actions do
|
|
|
|
- if can?(current_user, :modify_issue, @issue)
|
|
|
|
- if @issue.closed?
|
|
|
|
= link_to 'Reopen Issue', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn grouped reopen_issue"
|
|
|
|
- else
|
|
|
|
= link_to 'Close Issue', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn grouped close_issue", title: "Close Issue"
|
2012-01-29 11:04:09 +01:00
|
|
|
|
2012-12-03 21:43:17 +01:00
|
|
|
.voting_notes#notes= render "notes/notes_with_form"
|