Vulcan/packages/nova-base-components/lib/server/emails/newsletter/postItem.handlebars

63 lines
1.6 KiB
Handlebars
Raw Normal View History

<div class="post-item">
<br >
<span class="post-title">
{{#if thumbnailUrl}}
2015-12-13 10:45:15 +09:00
<img class="post-thumbnail" src="{{thumbnailUrl}}"/>&nbsp;
{{/if}}
<a href="{{postLink}}" target="_blank">{{title}}</a>
</span>
<div class="post-meta">
{{#if domain}}
<a class="post-domain" href="">{{domain}}</a>
|
{{/if}}
<span class="post-submitted">
{{#if profileUrl}}
Submitted by <a href="{{profileUrl}}" class="comment-link" target="_blank">{{authorName}}</a>
{{else}}
Submitted by {{authorName}}
{{/if}}
</span>
<span class="post-date">on {{date}}</span>
|
<a href="{{postPageLink}}" class="comment-link" target="_blank">{{commentCount}} Comments</a>
</div>
{{#if body}}
<div class="post-body-excerpt">
{{body}}
<a href="{{postPageLink}}" class="comment-link" target="_blank">Read more</a>
</div>
{{/if}}
2015-07-15 17:30:49 +10:00
{{#if popularComments}}
2015-08-12 16:30:27 +09:00
<div class="post-comments">
<div class="post-comments-title">Top Comments</div>
2015-07-15 17:30:49 +10:00
{{#each popularComments}}
2015-08-12 16:30:27 +09:00
<div class="post-comment">
2015-08-14 17:39:00 +09:00
<div class="post-comment-author">
{{#if authorAvatarUrl}}
<img class="post-comment-avatar avatar" src="{{authorAvatarUrl}}"/>
{{/if}}
<span class="post-comment-author-name">
2015-08-15 11:51:23 +09:00
<a href="{{authorProfileUrl}}" class="post-comment-author-link">
{{author}}
</a>
2015-08-14 17:39:00 +09:00
</span>
</div>
2015-08-12 16:30:27 +09:00
<div class="post-comment-body">{{body}}</div>
2015-07-15 17:30:49 +10:00
</div>
{{/each}}
2015-08-15 11:51:23 +09:00
<a class="post-comments-discuss" href="{{postPageLink}}">Discuss</a>
2015-07-15 17:30:49 +10:00
</div>
{{/if}}
<br>
</div>