2012-07-17 11:50:40 +01:00
|
|
|
.activity
|
|
|
|
.top
|
|
|
|
.image
|
|
|
|
=image_tag(avatar_url(@issue.user, :medium), :alt => 'avatar') if @issue.user
|
2013-03-21 21:20:36 +00:00
|
|
|
.created
|
|
|
|
%span=@issue.created_at.to_s(:long)
|
|
|
|
- if @issue.user
|
|
|
|
%span= t('layout.by')
|
|
|
|
%span.name=link_to(@issue.user.fullname, user_path(@issue.user))
|
|
|
|
.text.issue_title
|
2013-03-20 15:06:25 +00:00
|
|
|
%h3.issue_title=@issue.title
|
|
|
|
.both
|
2013-03-20 20:36:22 +00:00
|
|
|
#assigned-container.assigned-header
|
2013-03-21 11:07:08 +00:00
|
|
|
=render 'projects/issues/user_container', :user => @issue.assignee
|
2013-03-21 10:54:47 +00:00
|
|
|
=render 'projects/issues/assigned_popup'
|
2013-03-13 12:24:42 +00:00
|
|
|
.both
|
|
|
|
.fulltext.view.issue_body.formatted.cm-s-default.md_and_cm=markdown @issue.body
|
2012-07-17 11:50:40 +01:00
|
|
|
.both
|
|
|
|
%br
|
|
|
|
- if can? :update, @issue
|
|
|
|
=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-25 12:55:30 +01:00
|
|
|
=render 'projects/issues/title_body', :f => f, :id => 'update'
|
2012-07-17 11:50:40 +01:00
|
|
|
=f.submit t('layout.update'), :id => 'update_issue_content'
|
|
|
|
=link_to t('layout.issues.cancel_button'), '#', :id => 'cancel_edit_issue_content', :class => 'button'
|
2012-09-25 12:55:30 +01:00
|
|
|
%br
|