3cccbf8a43
While looking at an issue you no longer need to go back to the issue list for creating the next one.
62 lines
2.1 KiB
Text
62 lines
2.1 KiB
Text
%h3.page_title
|
|
Issue ##{@issue.id}
|
|
|
|
%small
|
|
created at
|
|
= @issue.created_at.stamp("Aug 21, 2011")
|
|
|
|
%span.right
|
|
- if can? current_user, :write_issue, @project
|
|
= link_to new_project_issue_path(@project, issue: { assignee_id: params[:assignee_id], milestone_id: params[:milestone_id]}), class: "btn grouped" do
|
|
%i.icon-plus
|
|
New Issue
|
|
- if can?(current_user, :admin_project, @project) || @issue.author == current_user
|
|
- if @issue.closed
|
|
= link_to 'Reopen', project_issue_path(@project, @issue, issue: {closed: false }, status_only: true), method: :put, class: "btn grouped reopen_issue"
|
|
- else
|
|
= link_to 'Close', project_issue_path(@project, @issue, issue: {closed: true }, status_only: true), method: :put, class: "btn grouped close_issue", title: "Close Issue"
|
|
- if can?(current_user, :admin_project, @project) || @issue.author == current_user
|
|
= link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do
|
|
%i.icon-edit
|
|
Edit
|
|
|
|
.right
|
|
.span3#votes= render 'votes/votes_block', votable: @issue
|
|
|
|
.back_link
|
|
= link_to project_issues_path(@project) do
|
|
← To issues list
|
|
|
|
|
|
.main_box
|
|
.top_box_content
|
|
%h4.box-title
|
|
- if @issue.closed
|
|
.error.status_info Closed
|
|
= gfm escape_once(@issue.title)
|
|
|
|
.middle_box_content
|
|
%cite.cgray
|
|
Created by #{link_to_member(@project, @issue.author)}
|
|
- if @issue.assignee
|
|
\ and currently assigned to #{link_to_member(@project, @issue.assignee)}
|
|
|
|
- if @issue.milestone
|
|
- milestone = @issue.milestone
|
|
%cite.cgray and attached to milestone
|
|
%strong= link_to_gfm truncate(milestone.title, length: 20), project_milestone_path(milestone.project, milestone)
|
|
|
|
.right
|
|
- @issue.labels.each do |label|
|
|
%span.label.label-issue
|
|
%i.icon-tag
|
|
= label.name
|
|
|
|
|
|
- if @issue.description.present?
|
|
.bottom_box_content
|
|
= preserve do
|
|
= markdown @issue.description
|
|
|
|
|
|
.issue_notes.voting_notes#notes= render "notes/notes_with_form", tid: @issue.id, tt: "issue"
|