2012-06-30 17:35:24 -04:00
|
|
|
%h3.page_title
|
2012-03-25 12:05:24 -04:00
|
|
|
Issue ##{@issue.id}
|
2012-06-26 12:08:44 -04:00
|
|
|
|
2012-01-29 16:59:12 -05:00
|
|
|
%small
|
2012-06-03 18:37:27 -04:00
|
|
|
created at
|
2012-01-29 16:59:12 -05:00
|
|
|
= @issue.created_at.stamp("Aug 21, 2011")
|
2012-01-29 05:04:09 -05:00
|
|
|
|
|
|
|
%span.right
|
|
|
|
- if can?(current_user, :admin_project, @project) || @issue.author == current_user
|
|
|
|
- if @issue.closed
|
2012-09-08 10:00:38 -04:00
|
|
|
= link_to 'Reopen', project_issue_path(@project, @issue, issue: {closed: false }, status_only: true), method: :put, class: "btn grouped success"
|
2012-01-29 05:04:09 -05:00
|
|
|
- else
|
2012-09-08 10:00:38 -04:00
|
|
|
= link_to 'Close', project_issue_path(@project, @issue, issue: {closed: true }, status_only: true), method: :put, class: "btn grouped danger", title: "Close Issue"
|
2011-12-13 16:59:35 -05:00
|
|
|
- if can?(current_user, :admin_project, @project) || @issue.author == current_user
|
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
|
2012-01-29 05:04:09 -05:00
|
|
|
Edit
|
|
|
|
|
2012-09-08 10:44:56 -04:00
|
|
|
.right
|
2012-09-10 09:27:14 -04:00
|
|
|
.span3#votes= render 'votes/votes_block', votable: @issue
|
2012-02-18 07:12:48 -05:00
|
|
|
|
2012-03-25 12:05:24 -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
|
2012-02-18 07:12:48 -05:00
|
|
|
|
2012-09-08 10:44:56 -04:00
|
|
|
|
2012-03-28 03:46:51 -04:00
|
|
|
.main_box
|
|
|
|
.top_box_content
|
2012-04-11 16:32:45 -04:00
|
|
|
%h4
|
2012-03-17 01:22:12 -04:00
|
|
|
- if @issue.closed
|
2012-03-25 12:05:24 -04:00
|
|
|
.alert-message.error.status_info Closed
|
2012-06-03 18:37:27 -04:00
|
|
|
- else
|
2012-03-25 12:05:24 -04:00
|
|
|
.alert-message.success.status_info Open
|
2012-09-19 20:21:12 -04:00
|
|
|
= gfm escape_once(@issue.title)
|
2012-03-14 09:31:31 -04:00
|
|
|
|
2012-03-28 03:46:51 -04:00
|
|
|
.middle_box_content
|
2012-03-27 17:31:14 -04:00
|
|
|
%cite.cgray Created by
|
2012-08-10 18:07:50 -04:00
|
|
|
= image_tag gravatar_icon(@issue.author_email), width: 16, class: "lil_av"
|
2012-03-27 17:31:14 -04:00
|
|
|
%strong.author= link_to_issue_author(@issue)
|
|
|
|
|
2012-06-26 14:47:25 -04:00
|
|
|
- if @issue.assignee
|
|
|
|
%cite.cgray and currently assigned to
|
2012-08-10 18:07:50 -04:00
|
|
|
= image_tag gravatar_icon(@issue.assignee_email), width: 16, class: "lil_av"
|
2012-06-26 14:47:25 -04:00
|
|
|
%strong.author= link_to_issue_assignee(@issue)
|
2012-04-16 17:22:59 -04:00
|
|
|
|
2012-06-03 18:37:27 -04:00
|
|
|
- if @issue.milestone
|
2012-04-16 17:22:59 -04:00
|
|
|
- milestone = @issue.milestone
|
2012-06-03 18:37:27 -04:00
|
|
|
%cite.cgray and attached to milestone
|
2012-08-10 18:07:50 -04:00
|
|
|
%strong= link_to_gfm truncate(milestone.title, length: 20), project_milestone_path(milestone.project, milestone)
|
2012-06-03 18:37:27 -04:00
|
|
|
|
2012-06-26 12:08:44 -04:00
|
|
|
.right
|
2012-06-27 14:20:35 -04:00
|
|
|
- @issue.labels.each do |label|
|
|
|
|
%span.label.label-issue
|
|
|
|
%i.icon-tag
|
|
|
|
= label.name
|
|
|
|
|
2012-06-26 12:08:44 -04:00
|
|
|
|
2012-03-28 03:46:51 -04:00
|
|
|
- if @issue.description.present?
|
|
|
|
.bottom_box_content
|
2012-04-11 15:36:52 -04:00
|
|
|
= preserve do
|
|
|
|
= markdown @issue.description
|
2012-01-29 05:04:09 -05:00
|
|
|
|
|
|
|
|
2012-09-15 05:54:46 -04:00
|
|
|
.issue_notes.voting_notes#notes= render "notes/notes_with_form", tid: @issue.id, tt: "issue"
|