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

36 lines
1.4 KiB
Plaintext
Raw Normal View History

2012-03-30 15:54:30 +01:00
-set_meta_tags :title => [title_object(@project), @issue.title]
-render 'submenu'
-render '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
2012-04-13 20:44:04 +01:00
=image_tag(avatar_url(@issue.user, :medium), :alt => 'avatar') if @issue.user
2012-02-28 14:05:18 +00:00
.text
2012-04-13 20:44:04 +01:00
%span.name=link_to("#{@issue.user.uname} (#{@issue.user.name})", user_path(@issue.user)) if @issue.user
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
=render 'status'
2012-03-01 18:56:24 +00:00
= render "projects/comments/list", :list => @issue.comments, :project => @project, :commentable => @issue
%br
= render "projects/comments/add", :project => @project, :commentable => @issue if current_user