rosa-build/app/views/shared/_feed_message.html.haml

29 lines
1.2 KiB
Plaintext
Raw Normal View History

-if !presenter.is_reference_to_issue || can?(:show, presenter.reference_project)
2014-01-21 04:51:49 +00:00
.activity{id: presenter.comment_id? ? presenter.comment_anchor : ''}
.top
- if presenter.buttons?
%span.buttons= raw presenter.buttons.join(' | ').html_safe
.image
2014-01-21 04:51:49 +00:00
%img{alt: "avatar", src: presenter.image}
.text
-#.imaged move up a line.
%span.name= presenter.header
.both
2014-01-21 04:51:49 +00:00
= datetime_moment presenter.date, tag: :span, class: :date
2013-03-26 10:47:42 +00:00
.both
- if presenter.caption?
%span.subject= presenter.caption
- if presenter.expandable? and presenter.content?
2014-01-21 04:51:49 +00:00
%span.data-expander.collapsed{id: "expand#{item_no}"}  
.both
.both
- if presenter.content?
%div
=presenter.issue_referenced_state if presenter.issue_referenced_state?
2014-01-21 04:51:49 +00:00
.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