gitlabhq/app/views/issues/show.html.haml

65 lines
2 KiB
Plaintext
Raw Normal View History

%h3.page_title
Issue ##{@issue.id}
%small
created at
= @issue.created_at.stamp("Aug 21, 2011")
2012-01-29 11:04:09 +01:00
%span.right
- 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 small"
2012-01-29 11:04:09 +01:00
- else
= link_to 'Close', project_issue_path(@project, @issue, issue: {closed: true }, status_only: true), method: :put, class: "btn small", title: "Close Issue"
2011-12-13 22:59:35 +01:00
- if can?(current_user, :admin_project, @project) || @issue.author == current_user
= link_to edit_project_issue_path(@project, @issue), class: "btn small" do
2012-05-24 08:23:25 +02:00
%i.icon-edit
2012-01-29 11:04:09 +01:00
Edit
%br
- if @issue.upvotes > 0
.upvotes#upvotes= "+#{pluralize @issue.upvotes, 'upvote'}"
2012-02-18 13:12:48 +01:00
.back_link
= link_to project_issues_path(@project) do
← To issues list
2012-02-18 13:12:48 +01:00
.main_box
.top_box_content
2012-04-11 22:32:45 +02:00
%h4
- if @issue.closed
.alert-message.error.status_info Closed
- else
.alert-message.success.status_info Open
2012-08-02 02:31:45 +02:00
= gfm @issue.title
2012-03-14 14:31:31 +01:00
.middle_box_content
%cite.cgray Created by
= image_tag gravatar_icon(@issue.author_email), width: 16, class: "lil_av"
%strong.author= link_to_issue_author(@issue)
2012-06-26 20:47:25 +02:00
- if @issue.assignee
%cite.cgray and currently assigned to
= image_tag gravatar_icon(@issue.assignee_email), width: 16, class: "lil_av"
2012-06-26 20:47:25 +02:00
%strong.author= link_to_issue_assignee(@issue)
- 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
2012-01-29 11:04:09 +01:00
.issue_notes#notes= render "notes/notes", tid: @issue.id, tt: "issue"