2013-04-10 11:30:53 +01:00
|
|
|
-if !presenter.is_reference_to_issue || can?(:show, presenter.reference_project)
|
2013-04-09 20:26:27 +01:00
|
|
|
.activity{:id => presenter.comment_id? ? presenter.comment_anchor : ''}
|
|
|
|
.top
|
|
|
|
- if presenter.buttons?
|
|
|
|
%span.buttons= raw presenter.buttons.join(' | ').html_safe
|
|
|
|
.image
|
|
|
|
%img{:alt => "avatar", :src => presenter.image}
|
|
|
|
.text
|
|
|
|
-#.imaged move up a line.
|
|
|
|
%span.name= presenter.header
|
2012-03-01 20:33:48 +00:00
|
|
|
.both
|
2013-04-09 20:26:27 +01:00
|
|
|
%span.date= presenter.date
|
2013-03-26 10:47:42 +00:00
|
|
|
.both
|
2013-04-09 20:26:27 +01:00
|
|
|
- if presenter.caption?
|
|
|
|
%span.subject= presenter.caption
|
|
|
|
- if presenter.expandable? and presenter.content?
|
|
|
|
%span.data-expander.collapsed{:id => "expand#{item_no}"}
|
|
|
|
.both
|
|
|
|
.both
|
|
|
|
- if presenter.content?
|
|
|
|
%div
|
|
|
|
=presenter.issue_referenced_state if presenter.issue_referenced_state?
|
|
|
|
.fulltext{:class => "#{presenter.expandable? ? "hidden" : ''} #{presenter.caption? ? "" : "alone"}",
|
|
|
|
:id => presenter.expandable? ? "content-expand#{item_no}" : ''}
|
|
|
|
.md_and_cm{:class => presenter.is_reference_to_issue ? '' : 'cm-s-default'}
|
|
|
|
=presenter.is_reference_to_issue ? presenter.content : markdown(presenter.content)
|
|
|
|
.both
|
2013-03-26 10:47:42 +00:00
|
|
|
|