2012-03-30 15:54:30 +01:00
|
|
|
-set_meta_tags :title => [title_object(@project), @issue.title]
|
2012-05-02 10:18:07 +01:00
|
|
|
-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-05-28 11:08:51 +01:00
|
|
|
%span.name=link_to(@issue.user.fullname, 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-08-29 15:58:58 +01:00
|
|
|
.fulltext.view.issue_body.formatted.cm-s-default.md_and_cm=markdown @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|
|
2012-09-18 11:00:21 +01:00
|
|
|
#open-comment.comment.view
|
|
|
|
%h3.tmargin0{:style => 'margin-bottom: 0;'}= t 'activerecord.attributes.issue.title'
|
|
|
|
.wrapper= f.text_area :title, :cols => 80, :rows => 1, :style => 'height: 16px; margin: 0 0 10px;'
|
|
|
|
#open-comment.comment.view
|
|
|
|
%h3.tmargin0= t 'activerecord.attributes.issue.body'
|
|
|
|
=render 'projects/comments/body', :f => f, :id => 'update'
|
2012-02-28 15:41:47 +00:00
|
|
|
.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-05-02 10:18:07 +01:00
|
|
|
=render 'status'
|
2012-03-01 18:56:24 +00:00
|
|
|
|
2012-05-02 10:18:07 +01:00
|
|
|
= render "projects/comments/list", :list => @issue.comments, :project => @project, :commentable => @issue
|
2012-03-01 19:11:21 +00:00
|
|
|
%br
|
2012-05-02 10:18:07 +01:00
|
|
|
= render "projects/comments/add", :project => @project, :commentable => @issue if current_user
|
2012-08-29 15:58:58 +01:00
|
|
|
|
2012-09-18 11:00:21 +01:00
|
|
|
=hidden_field_tag :preview_url, project_md_preview_path(@project)
|
|
|
|
|