show.html.haml 1.28 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1 2
%h3 
  Issue ##{@issue.id} 
3 4 5
  %small
    created at 
    = @issue.created_at.stamp("Aug 21, 2011")
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6 7 8 9 10 11 12

  %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
        = link_to 'Close', project_issue_path(@project, @issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "btn", :title => "Close merge request"
13
    - if can?(current_user, :admin_project, @project) || @issue.author == current_user
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
14 15 16 17 18 19 20 21 22 23 24 25
      = link_to edit_project_issue_path(@project, @issue), :class => "btn small" do 
        Edit

%hr
- if @issue.closed
  .alert-message.error Closed
- else 
  .alert-message.success Open


%div.well
  %div
26 27
    %cite.cgray Created by
    = image_tag gravatar_icon(@issue.author_email), :width => 16, :class => "lil_av"
28
    %strong.author= link_to_issue_author(@issue)
29 30 31

    %cite.cgray and currently assigned to 
    = image_tag gravatar_icon(@issue.assignee_email), :width => 16, :class => "lil_av"
32
    %strong.author= link_to_issue_assignee(@issue)
33 34
      
    %hr
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
35 36 37 38 39
    
  %div= simple_format @issue.title


.issue_notes= render "notes/notes"
40