This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/embedded_post.hbs
Sam 9c81f2c6af remove duplicate code
fix issue where clicking on
the same user in 2 locations on the page would not work correctly

centralize logic
2014-11-06 12:13:46 +11:00

19 lines
744 B
Handlebars

<div class='row'>
<div class='topic-avatar'>
<div class='contents'>
<div>
{{poster-avatar post=this classNames="main-avatar"}}
</div>
</div>
</div>
<div class='topic-body'>
<div class="topic-meta-data">
{{poster-name post=this}}
{{#if view.parentView.previousPost}}<a href='{{unbound url}}' class="post-info arrow" title="{{i18n topic.jump_reply_up}}"><i class='fa fa-arrow-up'></i></a>{{/if}}
<div class='post-info post-date'>{{age-with-tooltip created_at}}</div>
</div>
{{{unbound cooked}}}
{{#unless view.parentView.previousPost}}<a href='{{unbound url}}' class="arrow" title="{{i18n topic.jump_reply_down}}"><i class='fa fa-arrow-down'></i></a>{{/unless}}
</div>
</div>