gitlab-org--gitlab-foss/app/views/projects/issues/show.html.haml

68 lines
2.4 KiB
Plaintext
Raw Normal View History

%h3.page-title
2013-08-19 19:12:40 +00:00
Issue ##{@issue.iid}
%small
created at
= @issue.created_at.stamp("Aug 21, 2011")
2012-01-29 10:04:09 +00:00
2013-01-30 14:40:43 +00:00
%span.pull-right
- 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 21:10:50 +00:00
- if can?(current_user, :modify_issue, @issue)
2013-02-18 09:10:58 +00:00
- if @issue.closed?
2013-02-18 12:49:56 +00: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 10:04:09 +00:00
- else
2013-02-18 12:49:56 +00: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 21:10:50 +00:00
= link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do
2012-05-24 06:23:25 +00:00
%i.icon-edit
2013-02-26 08:17:09 +00:00
Edit
2012-01-29 10:04:09 +00:00
2013-01-30 14:40:43 +00:00
.pull-right
2012-09-10 13:27:14 +00:00
.span3#votes= render 'votes/votes_block', votable: @issue
2012-02-18 12:12:48 +00:00
.back-link
= link_to project_issues_path(@project) do
← To issues list
%span.milestone-nav-link
- if @issue.milestone
|
= link_to project_milestone_path(@project, @issue.milestone) do
<strong>Milestone:</strong>
= @issue.milestone.title
2012-09-08 14:44:56 +00:00
2013-01-04 21:35:31 +00:00
.ui-box.ui-box-show
.ui-box-head
%h4.box-title
2013-02-18 09:10:58 +00:00
- if @issue.closed?
.state-label.state-label-red Closed
2013-11-27 10:22:19 +00:00
- else
.state-label.state-label-green Open
2012-09-20 00:21:12 +00:00
= gfm escape_once(@issue.title)
2012-03-14 13:31:31 +00:00
2013-01-04 21:35:31 +00:00
.ui-box-body
%cite.cgray
= render partial: 'issue_context', locals: { issue: @issue }
- if @issue.description.present?
2013-01-04 21:35:31 +00:00
.ui-box-bottom
2013-01-10 16:09:12 +00:00
.wiki
= preserve do
= markdown @issue.description
2012-01-29 10:04:09 +00:00
2013-02-25 21:10:50 +00: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 10:04:09 +00:00
.participants
%cite.cgray #{@issue.participants.count} participants
- @issue.participants.each do |participant|
= link_to_member(@project, participant, name: false, size: 24)
.voting_notes#notes= render "projects/notes/notes_with_form"