2011-12-13 22:59:35 +01:00
|
|
|
%div
|
|
|
|
%span.entity-info
|
|
|
|
- if can?(current_user, :admin_project, @project) || @issue.author == current_user
|
|
|
|
= link_to edit_project_issue_path(@project, @issue) do
|
|
|
|
.entity-button
|
|
|
|
Edit Issue
|
|
|
|
%i
|
|
|
|
= image_tag gravatar_icon(@issue.author_email), :class => "left", :width => 40, :style => "padding-right:5px;"
|
|
|
|
%span.commit-title
|
|
|
|
%strong
|
|
|
|
= "Issue ##{@issue.id}:"
|
|
|
|
%span.commit-author
|
|
|
|
%strong
|
|
|
|
= link_to project_team_member_path(@project, @project.team_member_by_id(@issue.author.id)) do
|
|
|
|
%span.author= @issue.author_name
|
|
|
|
- if @issue.author != @issue.assignee
|
|
|
|
→
|
|
|
|
= link_to project_team_member_path(@project, @project.team_member_by_id(@issue.assignee.id)) do
|
|
|
|
%span.author= @issue.assignee_name
|
|
|
|
|
2011-11-24 17:47:27 +01:00
|
|
|
|
2011-12-13 22:59:35 +01:00
|
|
|
|
|
|
|
= @issue.created_at.stamp("Aug 21, 2011 9:23pm")
|
2011-11-24 14:08:20 +01:00
|
|
|
|
2011-12-13 22:59:35 +01:00
|
|
|
%hr
|
|
|
|
%br
|
|
|
|
%h3
|
|
|
|
= simple_format @issue.title
|
2011-11-24 14:08:20 +01:00
|
|
|
|
2011-11-25 11:41:30 +01:00
|
|
|
.clear
|
2011-11-24 14:08:20 +01:00
|
|
|
%br
|
|
|
|
%br
|
|
|
|
|
2011-12-13 22:59:35 +01:00
|
|
|
.merge-tabs
|
|
|
|
= link_to "#notes", :class => "merge-notes-tab active tab" do
|
|
|
|
%span
|
|
|
|
Notes
|
|
|
|
.right
|
|
|
|
- if @issue.closed
|
|
|
|
= link_to 'Reopen', project_issue_path(@project, @issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "red-button"
|
|
|
|
- else
|
|
|
|
= link_to 'Close', project_issue_path(@project, @issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "positive-button"
|
|
|
|
|
|
|
|
.merge-request-notes
|
|
|
|
.issue_notes= render "notes/notes"
|
|
|
|
.loading{ :style => "display:none;"}
|
|
|
|
%center= image_tag "ajax-loader.gif"
|
|
|
|
.clear
|
|
|
|
|