2012-03-17 04:24:40 +01:00
|
|
|
%h3
|
2012-03-25 18:05:24 +02:00
|
|
|
Issue ##{@issue.id}
|
2012-01-29 22:59:12 +01:00
|
|
|
%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"
|
|
|
|
- else
|
2012-02-25 12:03:44 +01:00
|
|
|
= link_to 'Close', project_issue_path(@project, @issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "btn", :title => "Close Issue"
|
2011-12-13 22:59:35 +01:00
|
|
|
- if can?(current_user, :admin_project, @project) || @issue.author == current_user
|
2012-03-14 23:51:03 +01:00
|
|
|
= link_to edit_project_issue_path(@project, @issue), :class => "btn" do
|
2012-01-29 11:04:09 +01:00
|
|
|
Edit
|
|
|
|
|
2012-03-15 12:03:56 +01:00
|
|
|
%br
|
2012-03-14 23:51:03 +01:00
|
|
|
- if @issue.upvotes > 0
|
2012-03-15 12:03:56 +01:00
|
|
|
.upvotes#upvotes= "+#{pluralize @issue.upvotes, 'upvote'}"
|
2012-02-18 13:12:48 +01:00
|
|
|
|
2012-03-25 18:05:24 +02:00
|
|
|
.back_link
|
|
|
|
= link_to project_issues_path(@project) do
|
|
|
|
← To issues list
|
2012-02-18 13:12:48 +01:00
|
|
|
|
2012-03-25 18:05:24 +02:00
|
|
|
.issue_box
|
|
|
|
.merge_request_status_holder
|
|
|
|
%h5
|
2012-03-17 06:22:12 +01:00
|
|
|
- if @issue.closed
|
2012-03-25 18:05:24 +02:00
|
|
|
.alert-message.error.status_info Closed
|
2012-03-17 06:22:12 +01:00
|
|
|
- else
|
2012-03-25 18:05:24 +02:00
|
|
|
.alert-message.success.status_info Open
|
|
|
|
= @issue.title
|
2012-03-14 14:31:31 +01:00
|
|
|
|
2012-03-17 06:48:22 +01:00
|
|
|
%hr
|
2012-03-17 06:13:36 +01:00
|
|
|
%div
|
2012-03-25 18:05:24 +02:00
|
|
|
%div.row
|
|
|
|
%div.issue_meta.span13
|
|
|
|
%cite.cgray Created by
|
|
|
|
= image_tag gravatar_icon(@issue.author_email), :width => 16, :class => "lil_av"
|
|
|
|
%strong.author= link_to_issue_author(@issue)
|
|
|
|
|
|
|
|
%cite.cgray and currently assigned to
|
|
|
|
= image_tag gravatar_icon(@issue.assignee_email), :width => 16, :class => "lil_av"
|
|
|
|
%strong.author= link_to_issue_assignee(@issue)
|
|
|
|
|
|
|
|
%div
|
2012-03-25 18:44:29 +02:00
|
|
|
- if @issue.description.present?
|
2012-03-25 18:05:24 +02:00
|
|
|
%hr
|
|
|
|
= markdown @issue.description
|
2012-01-29 11:04:09 +01:00
|
|
|
|
|
|
|
|
2012-03-14 23:56:42 +01:00
|
|
|
.issue_notes#notes= render "notes/notes", :tid => @issue.id, :tt => "issue"
|