- Renamed 'stream-item' component to 'user-stream-item' - Replaced generic 'item' class with clearer 'user-stream-item' class - Retained 'item' class for backward compatibility, marked as 'DEPRECATED' - Extracted CSS pertaining 'user-stream-item' component to component CSS files - Removed unnecessary duplication from 'user-stream-item' CSS - Removed unnecessary nesting from 'user-stream-item' CSS
20 lines
887 B
Handlebars
20 lines
887 B
Handlebars
<div class="user-stream-item item">{{!-- DEPRECATED: 'item' class --}}
|
|
<div class='clearfix info'>
|
|
<a href="{{unbound post.user.userUrl}}" data-user-card="{{unbound post.user.username}}" class='avatar-link'><div class='avatar-wrapper'>{{avatar post.user imageSize="large" extraClasses="actor" ignoreTitle="true"}}</div></a>
|
|
<span class='time'>{{format-date post.created_at leaveAgo="true"}}</span>
|
|
{{expand-post item=post}}
|
|
<span class="title">
|
|
<a href={{post.url}}>{{{post.topic.fancyTitle}}}</a>
|
|
</span>
|
|
<span class="category">{{category-link post.category}}</span>
|
|
<div class="group-member-info">
|
|
{{#if post.user.name}}
|
|
<span class="name">{{post.user.name}}</span>{{#if post.user.title}}<span class="title">, {{post.user.title}}</span>{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
<p class='excerpt'>
|
|
{{{post.excerpt}}}
|
|
</p>
|
|
</div>
|