Issue show page restyled
This commit is contained in:
parent
6f32ccf432
commit
87d9e0d88c
1 changed files with 43 additions and 36 deletions
|
@ -1,42 +1,49 @@
|
||||||
.issue-show-holder.ui-box
|
%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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
= @issue.created_at.stamp("Aug 21, 2011 9:23pm")
|
||||||
|
|
||||||
|
%hr
|
||||||
|
%br
|
||||||
%h3
|
%h3
|
||||||
= "Issue ##{@issue.id}"
|
= simple_format @issue.title
|
||||||
.right
|
|
||||||
- if @issue.closed
|
|
||||||
%span.tag.closed Closed
|
|
||||||
- else
|
|
||||||
%span.tag.open Open
|
|
||||||
|
|
||||||
.data
|
.clear
|
||||||
%p= @issue.title
|
%br
|
||||||
|
%br
|
||||||
|
|
||||||
- if @issue.author == @issue.assignee
|
.merge-tabs
|
||||||
= image_tag gravatar_icon(@issue.assignee_email), :width => 20, :style => "padding:0 5px;"
|
= link_to "#notes", :class => "merge-notes-tab active tab" do
|
||||||
= @issue.assignee_name
|
%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
|
- else
|
||||||
= image_tag gravatar_icon(@issue.author_email), :width => 20, :style => "padding:0 5px;"
|
= link_to 'Close', project_issue_path(@project, @issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "positive-button"
|
||||||
= @issue.author_name
|
|
||||||
→
|
|
||||||
= image_tag gravatar_icon(@issue.assignee_email), :width => 20, :style => "padding:0 5px;"
|
|
||||||
= @issue.assignee_name
|
|
||||||
.right
|
|
||||||
%cite.cgray= @issue.created_at.stamp("21 Aug 2011, 11:15pm")
|
|
||||||
.clear
|
|
||||||
|
|
||||||
.buttons
|
.merge-request-notes
|
||||||
- if can? current_user, :write_issue, @issue
|
.issue_notes= render "notes/notes"
|
||||||
- if @issue.closed
|
.loading{ :style => "display:none;"}
|
||||||
= link_to 'Reopen', project_issue_path(@project, @issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "grey-button"
|
%center= image_tag "ajax-loader.gif"
|
||||||
- else
|
.clear
|
||||||
= link_to 'Close', project_issue_path(@project, @issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "grey-button"
|
|
||||||
.right
|
|
||||||
= link_to 'Edit', edit_project_issue_path(@project, @issue), :class => "grey-button positive"
|
|
||||||
|
|
||||||
.clear
|
|
||||||
%br
|
|
||||||
%br
|
|
||||||
|
|
||||||
.issue_notes= render "notes/notes"
|
|
||||||
.loading{ :style => "display:none;"}
|
|
||||||
%center= image_tag "ajax-loader.gif"
|
|
||||||
.clear
|
|
||||||
|
|
Loading…
Reference in a new issue