|
@@ -2,10 +2,10 @@
|
|
|
<div class="post">
|
|
|
<div class="post-content">
|
|
|
<h3><a href="{{url}}">{{title}}</a><span>{{domain}}</span></h3>
|
|
|
- <p>Submitted by {{author}}</p>
|
|
|
- {{#if ownPost}}
|
|
|
- <a href="{{pathFor 'postEdit' }}">Edit</a>
|
|
|
- {{/if}}
|
|
|
+ <p>Submitted by {{author}},
|
|
|
+ <a href="{{pathFor 'postPage' }}">{{commentsCount}} comments</a>
|
|
|
+ {{#if ownPost}}<a href="{{pathFor 'postEdit' }}">Edit</a>{{/if}}
|
|
|
+ </p>
|
|
|
</div>
|
|
|
{{! La route postPage nécessite un _id, donc IR va le chercher dans le
|
|
|
data context, qui se trouve à ce stade être le document concerné, qui
|