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
|
|
|
|
2014-03-27 18:05:15 -04:00
|
|
|
%span.pull-right.issue-btn-group
|
2013-09-25 11:26:54 -04:00
|
|
|
- if can?(current_user, :write_issue, @project)
|
2014-02-20 06:05:33 -05:00
|
|
|
= link_to new_project_issue_path(@project), class: "btn btn-grouped", title: "New Issue", id: "new_issue_link" do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-plus
|
2013-09-25 11:26:54 -04:00
|
|
|
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?
|
2014-02-20 06:05:33 -05:00
|
|
|
= link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-grouped btn-reopen"
|
2012-01-29 05:04:09 -05:00
|
|
|
- else
|
2014-02-20 06:05:33 -05:00
|
|
|
= 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-02-25 16:10:50 -05:00
|
|
|
|
2014-02-20 06:05:33 -05:00
|
|
|
= link_to edit_project_issue_path(@project, @issue), class: "btn btn-grouped" do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-pencil-square-o
|
2013-02-26 03:17:09 -05:00
|
|
|
Edit
|
2012-01-29 05:04:09 -05:00
|
|
|
|
2014-03-27 18:05:15 -04:00
|
|
|
.clearfix
|
|
|
|
.votes-holder
|
|
|
|
#votes= render 'votes/votes_block', votable: @issue
|
2012-02-18 07:12:48 -05:00
|
|
|
|
2014-03-27 18:05:15 -04:00
|
|
|
.back-link
|
|
|
|
= link_to project_issues_path(@project) do
|
|
|
|
← To issues list
|
|
|
|
%span.milestone-nav-link
|
|
|
|
- if @issue.milestone
|
|
|
|
|
|
|
|
|
%span.light Milestone
|
|
|
|
= link_to project_milestone_path(@project, @issue.milestone) do
|
|
|
|
= @issue.milestone.title
|
2012-09-08 10:44:56 -04:00
|
|
|
|
2014-02-27 14:04:44 -05:00
|
|
|
.issue-box{ class: issue_box_class(@issue) }
|
2014-03-27 18:05:15 -04:00
|
|
|
.state.clearfix
|
2014-05-30 17:41:11 -04:00
|
|
|
.state-label
|
2014-02-27 14:04:44 -05:00
|
|
|
- if @issue.closed?
|
|
|
|
Closed
|
|
|
|
- else
|
|
|
|
Open
|
2014-02-18 15:05:44 -05:00
|
|
|
|
2014-10-20 05:56:01 -04:00
|
|
|
.cross-project-ref
|
2014-12-03 04:40:04 -05:00
|
|
|
%i.fa.fa-link.has_tooltip{:"data-original-title" => 'Cross-project reference'}
|
2014-10-20 05:56:01 -04:00
|
|
|
= cross_project_reference(@project, @issue)
|
|
|
|
|
2014-05-30 17:41:11 -04:00
|
|
|
.creator
|
2014-11-08 05:54:08 -05:00
|
|
|
Created by #{link_to_member(@project, @issue.author)} #{issue_timestamp(@issue)}
|
2014-02-18 14:18:46 -05:00
|
|
|
|
2013-12-24 04:45:42 -05:00
|
|
|
%h4.title
|
|
|
|
= gfm escape_once(@issue.title)
|
2012-03-14 09:31:31 -04:00
|
|
|
|
2012-03-28 03:46:51 -04:00
|
|
|
- if @issue.description.present?
|
2014-02-11 14:03:43 -05:00
|
|
|
.description
|
|
|
|
.wiki
|
|
|
|
= preserve do
|
2014-10-05 01:53:44 -04:00
|
|
|
= markdown(@issue.description, parse_tasks: true)
|
2014-02-19 02:38:01 -05:00
|
|
|
.context
|
|
|
|
%cite.cgray
|
|
|
|
= render partial: 'issue_context', locals: { issue: @issue }
|
|
|
|
|
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?
|
2014-09-01 08:37:53 -04:00
|
|
|
= link_to 'Reopen Issue', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-grouped btn-reopen js-note-target-reopen", title: 'Reopen Issue'
|
2013-02-25 16:10:50 -05:00
|
|
|
- else
|
2014-09-01 08:37:53 -04:00
|
|
|
= link_to 'Close Issue', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-grouped btn-close js-note-target-close", title: "Close Issue"
|
2012-01-29 05:04:09 -05:00
|
|
|
|
2013-05-09 19:37:47 -04:00
|
|
|
.participants
|
2014-10-07 12:50:13 -04:00
|
|
|
%cite.cgray
|
|
|
|
= pluralize(@issue.participants.count, 'participant')
|
2013-05-09 19:37:47 -04:00
|
|
|
- @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|
|
2014-09-11 07:18:00 -04:00
|
|
|
= link_to project_issues_path(@project, label_name: label.name) do
|
|
|
|
= render_colored_label(label)
|
2013-12-19 12:36:27 -05:00
|
|
|
|
2014-05-30 17:41:11 -04:00
|
|
|
.voting_notes#notes= render "projects/notes/notes_with_form"
|