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

79 lines
2.2 KiB
Plaintext
Raw Normal View History

2011-11-24 14:08:20 +01:00
%h2.icon
%span
%d
= "Issue ##{@issue.id}"
- unless @commits.blank?
.right
= link_to 'Browse Code', tree_project_ref_path(@project, @issue.branch_name), :class => "browse-code button yellow", :style => "margin-right:10px;"
= link_to 'Commits', project_commits_path(@project, :ref => @issue.branch_name), :class => "browse-code button"
.clear
2011-11-24 17:47:27 +01:00
%h3= @issue.title
2011-11-24 14:08:20 +01:00
%table.round-borders
%thead
2011-11-24 17:47:27 +01:00
%th Assignee
%th Status
%th Opened
%th Tags
2011-11-24 14:08:20 +01:00
%tr
%td
2011-11-24 17:47:27 +01:00
= image_tag gravatar_icon(@issue.assignee_email), :width => 20, :style => "padding:0 5px;"
= @issue.assignee_name
2011-11-24 14:08:20 +01:00
%td
2011-11-24 17:47:27 +01:00
- if @issue.closed
%span.tag.high Resolved
- else
%span.tag.today Open
%td
= @issue.created_at.stamp("21 Aug 2011, 11:15pm")
2011-11-24 14:08:20 +01:00
%td
2011-11-24 16:15:30 +01:00
- if @issue.critical
%span.tag.high critical
- else
%span.tag.normal normal
- if @issue.today?
%span.tag.today today
2011-11-24 17:47:27 +01:00
2011-11-24 16:15:30 +01:00
.clear
2011-11-24 14:08:20 +01:00
- if can? current_user, :write_issue, @issue
- if @issue.closed
= link_to 'Reopen', project_issue_path(@project, @issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "grey-button"
- else
= link_to 'Resolve', 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"
 
= link_to 'Destroy', [@project, @issue], :confirm => 'Are you sure?', :method => :delete, :class => "grey-button delete-issue negative", :id => "destroy_issue_#{@issue.id}"
%br
%br
- unless @commits.blank?
2011-10-08 23:36:38 +02:00
%table.round-borders
2011-11-24 14:08:20 +01:00
%thead
%th Unmerged Commits
- @commits.each do |commit|
%tr
%td
= image_tag gravatar_icon(commit.author_email), :class => "left", :width => 20, :style => "padding-right:5px;"
= link_to commit.id.to_s, project_commit_path(@project, :id => commit.id)
.right
= time_ago_in_words(commit.created_at)
ago
.issue_notes= render "notes/notes"
.loading{ :style => "display:none;"}
%center= image_tag "ajax-loader.gif"
2011-10-08 23:36:38 +02:00
.clear