rosa-build/app/views/issues/show.html.haml

36 lines
1.4 KiB
Plaintext
Raw Normal View History

2012-03-30 13:30:39 +01:00
-title "#{@issue.title} - #{title_project @project}"
2012-02-28 14:05:18 +00:00
-render :partial => 'projects/submenu'
-render :partial => 'issues/manage_sidebar'
2012-02-28 14:05:18 +00:00
-content_for :right_nopadding do
dummy
2012-02-28 15:41:47 +00:00
%h3.issue_title=@issue.title
2012-02-28 14:05:18 +00:00
.activity
.top
.image
=image_tag(avatar_url(@issue.creator, :medium), :alt => 'avatar') if @issue.creator
2012-02-28 14:05:18 +00:00
.text
2012-03-06 12:29:42 +00:00
%span.name=link_to("#{@issue.creator.uname} (#{@issue.creator.name})", user_path(@issue.creator)) if @issue.creator
2012-02-28 14:05:18 +00:00
%br/
%span.date=@issue.created_at.to_s(:long)
%br/
.both
2012-02-28 15:41:47 +00:00
.fulltext.view.issue_body=@issue.body
2012-02-28 14:05:18 +00:00
.both
2012-02-28 15:41:47 +00:00
%br
2012-03-14 15:50:58 +00:00
- if can? :update, @issue
2012-02-28 15:41:47 +00:00
=link_to t('layout.edit'), '#', :id => 'edit_issue_content', :class => 'button'
=form_for :issue, :url => [@project, @issue], :method => :put, :html => { :class => 'edit_form issue', :style => 'display:none;' } do |f|
.leftlist= t('activerecord.attributes.issue.title') + ':'
.rightlist= f.text_field :title
.leftlist= t('activerecord.attributes.issue.body') + ':'
.rightlist= f.text_area :body
.both
=f.submit t('layout.update'), :id => 'update_issue_content'
=link_to t('layout.issues.cancel_button'), '#', :id => 'cancel_edit_issue_content', :class => 'button'
2012-03-01 18:56:24 +00:00
%br
2012-02-28 14:05:18 +00:00
=render :partial => 'issues/status'
2012-03-01 18:56:24 +00:00
= render :partial => "comments/list", :locals => {:list => @issue.comments, :project => @project, :commentable => @issue}
%br
= render :partial => "comments/add", :locals => {:project => @project, :commentable => @issue}