2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2013-08-19 15:12:40 -04:00
|
|
|
Issue ##{@issue.iid}
|
2012-06-26 12:08:44 -04:00
|
|
|
|
2012-01-29 16:59:12 -05:00
|
|
|
%small
|
2013-12-30 07:49:22 -05:00
|
|
|
created #{time_ago_with_tooltip(@issue.created_at)}
|
2012-01-29 05:04:09 -05:00
|
|
|
|
2013-12-19 14:00:44 -05:00
|
|
|
- if @issue.closed?
|
|
|
|
%span.state-label.state-label-red Closed
|
|
|
|
- else
|
|
|
|
%span.state-label.state-label-green Open
|
|
|
|
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.pull-right
|
2013-09-25 11:26:54 -04:00
|
|
|
- if can?(current_user, :write_issue, @project)
|
|
|
|
= link_to new_project_issue_path(@project), class: "btn grouped", title: "New Issue", id: "new_issue_link" do
|
|
|
|
%i.icon-plus
|
|
|
|
New Issue
|
2013-02-25 16:10:50 -05:00
|
|
|
- if can?(current_user, :modify_issue, @issue)
|
2013-02-18 04:10:58 -05:00
|
|
|
- if @issue.closed?
|
2013-02-18 07:49:56 -05: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 05:04:09 -05:00
|
|
|
- else
|
2013-02-18 07:49:56 -05: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 16:10:50 -05:00
|
|
|
|
2012-09-08 10:00:38 -04:00
|
|
|
= link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do
|
2012-05-24 02:23:25 -04:00
|
|
|
%i.icon-edit
|
2013-02-26 03:17:09 -05:00
|
|
|
Edit
|
2012-01-29 05:04:09 -05:00
|
|
|
|
2013-01-30 09:40:43 -05:00
|
|
|
.pull-right
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-3#votes= render 'votes/votes_block', votable: @issue
|
2012-02-18 07:12:48 -05:00
|
|
|
|
2013-07-13 01:45:48 -04:00
|
|
|
.back-link
|
2012-06-03 18:37:27 -04:00
|
|
|
= link_to project_issues_path(@project) do
|
2012-03-25 12:05:24 -04:00
|
|
|
← To issues list
|
2013-12-17 09:39:39 -05:00
|
|
|
%span.milestone-nav-link
|
|
|
|
- if @issue.milestone
|
2013-12-19 12:36:27 -05:00
|
|
|
|
|
2013-12-17 09:39:39 -05:00
|
|
|
= link_to project_milestone_path(@project, @issue.milestone) do
|
2013-12-19 12:39:58 -05:00
|
|
|
%span.light Milestone
|
2013-12-17 09:39:39 -05:00
|
|
|
= @issue.milestone.title
|
2012-09-08 10:44:56 -04:00
|
|
|
|
2013-12-24 04:45:42 -05:00
|
|
|
.issue-box
|
|
|
|
%h4.title
|
|
|
|
= gfm escape_once(@issue.title)
|
2012-03-14 09:31:31 -04:00
|
|
|
|
2013-12-24 04:45:42 -05:00
|
|
|
.context
|
2012-12-12 22:14:05 -05:00
|
|
|
%cite.cgray
|
2013-12-17 09:39:39 -05:00
|
|
|
= render partial: 'issue_context', locals: { issue: @issue }
|
2012-06-26 12:08:44 -04:00
|
|
|
|
2012-03-28 03:46:51 -04:00
|
|
|
- if @issue.description.present?
|
2013-12-24 04:45:42 -05:00
|
|
|
.description
|
2013-01-10 11:09:12 -05:00
|
|
|
.wiki
|
|
|
|
= preserve do
|
|
|
|
= markdown @issue.description
|
2012-01-29 05:04:09 -05:00
|
|
|
|
2013-02-25 16:10:50 -05: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 05:04:09 -05:00
|
|
|
|
2013-05-09 19:37:47 -04:00
|
|
|
.participants
|
|
|
|
%cite.cgray #{@issue.participants.count} participants
|
|
|
|
- @issue.participants.each do |participant|
|
|
|
|
= link_to_member(@project, participant, name: false, size: 24)
|
|
|
|
|
2013-12-19 13:25:01 -05:00
|
|
|
.issue-show-labels.pull-right
|
2013-12-19 12:36:27 -05:00
|
|
|
- @issue.labels.each do |label|
|
|
|
|
%span{class: "label #{label_css_class(label.name)}"}
|
|
|
|
%i.icon-tag
|
|
|
|
= label.name
|
|
|
|
|
|
|
|
|
2013-12-17 09:39:39 -05:00
|
|
|
.voting_notes#notes= render "projects/notes/notes_with_form"
|