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

80 lines
2.9 KiB
Text
Raw Normal View History

%h3.page-title
2013-08-19 15:12:40 -04:00
Issue ##{@issue.iid}
%span.pull-right.issue-btn-group
- if can?(current_user, :write_issue, @project)
= 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
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?
= 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
= 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
= 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
.clearfix
.votes-holder
#votes= render 'votes/votes_block', votable: @issue
2012-02-18 07:12:48 -05: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
.issue-box{ class: issue_box_class(@issue) }
.state.clearfix
2014-05-30 17:41:11 -04:00
.state-label
- if @issue.closed?
Closed
- else
Open
.cross-project-ref
%i.fa.fa-link.has_tooltip{:"data-original-title" => 'Cross-project reference'}
= 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)}
%h4.title
= gfm escape_once(@issue.title)
2012-03-14 09:31:31 -04:00
- if @issue.description.present?
.description
.wiki
= preserve do
= markdown(@issue.description, parse_tasks: true)
.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?
= 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
= 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
.participants
%cite.cgray
= pluralize(@issue.participants.count, 'participant')
- @issue.participants.each do |participant|
= link_to_member(@project, participant, name: false, size: 24)
.issue-show-labels.pull-right
- @issue.labels.each do |label|
= link_to project_issues_path(@project, label_name: label.name) do
= render_colored_label(label)
2014-05-30 17:41:11 -04:00
.voting_notes#notes= render "projects/notes/notes_with_form"