Vulcan/packages/telescope-newsletter/lib/server/templates/emailPostItem.handlebars

54 lines
1.2 KiB
Handlebars
Raw Normal View History

<div class="post-item">
<br >
<span class="post-title">
{{#if thumbnailUrl}}
<img class="post-thumbnail" src="http:{{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-07-15 17:30:49 +10:00
<div class="post-comment-author">{{author}}</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-12 16:30:27 +09:00
2015-07-15 17:30:49 +10:00
</div>
{{/if}}
<br>
</div>