Vulcan/packages/telescope-newsletter/lib/server/templates/emailPostItem.handlebars
shambles 731fc5e119 Couple of small Newsletter fixes
1) The route /email/campaign was broken in
ceeb7bf531.  the method
getNextCampaignSchedule() was removed.
e.g. http://meta.telesc.pe/email/campaign
2) The wrong comment count helper was used in the newsletter template
resulting in it being undefined and so you wouldn’t see a count. I’m
guessing this was broken when the post schema was changed as it comes
from a post’s document.
2014-12-26 01:23:23 +00:00

34 lines
792 B
Handlebars

<div class="post-item">
<br >
<span class="post-title">
{{#if thumbnailUrl}}
<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">Submitted by <a href="{{profileUrl}}" class="comment-link" target="_blank">{{authorName}}</a></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">
{{{htmlBody}}}
<a href="{{postPageLink}}" class="comment-link" target="_blank">Read more</a>
</div>
{{/if}}
<br>
</div>