-if !presenter.is_reference_to_issue || can?(:show, presenter.reference_project) .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 .both %span.date= presenter.date .both - 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