2012-02-28 14:05:18 +00:00
|
|
|
-render :partial => 'projects/submenu'
|
2012-03-05 13:55:15 +00:00
|
|
|
-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
|
2012-03-03 18:05:02 +00:00
|
|
|
=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
|
|
|
|
- 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'
|
2012-02-28 16:32:36 +00:00
|
|
|
=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}
|
2012-03-01 19:11:21 +00:00
|
|
|
%br
|
2012-03-03 18:05:02 +00:00
|
|
|
= render :partial => "comments/add", :locals => {:project => @project, :commentable => @issue}
|