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

31 lines
1.0 KiB
Plaintext

-render :partial => 'projects/submenu'
-render :partial => 'issues/create_sidebar'
-content_for :right_nopadding do
dummy
%h3.issue_title=@issue.title
.activity
.top
.image
=image_tag(@issue.creator.avatar(42), :alt => 'avatar') if @issue.creator
.text
%span.name=link_to(@issue.creator.uname, user_path(@issue.creator)) if @issue.creator
%br/
%span.date=@issue.created_at.to_s(:long)
%br/
.both
.fulltext.view.issue_body=@issue.body
.both
%br
- if can? :write, @issue.project
=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'
.hr
=render :partial => 'issues/status'