2016-02-14 11:53:27 +01:00
|
|
|
<div class="comments">
|
2015-10-25 03:35:37 +01:00
|
|
|
<h2>All Comments ({{resource.comments.length}})</h2>
|
2016-02-14 11:53:27 +01:00
|
|
|
<form class="pfm-form" ng-submit="addComment()" ng-show="::auth.isLogged">
|
2015-10-25 03:35:37 +01:00
|
|
|
<div class="form-row">
|
2016-02-14 11:53:27 +01:00
|
|
|
<input type="text" ng-model="content" placeholder="Write a comment…" />
|
2015-10-25 03:35:37 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<ul>
|
|
|
|
<li ng-show="resource.comments.length == 0" class="empty">
|
|
|
|
There are no comments yet!
|
|
|
|
</li>
|
2016-02-14 12:12:13 +01:00
|
|
|
<li ng-repeat="comment in resource.comments track by comment.id">
|
2016-02-14 11:53:27 +01:00
|
|
|
<img pfm-src-loader="::comment.user.avatars.thumbnail" pfm-src-size="thumbnail" />
|
2015-10-25 03:35:37 +01:00
|
|
|
<div class="content">
|
2016-02-14 11:53:27 +01:00
|
|
|
<a ng-href="{{::comment.user.url}}">{{::comment.user.name}}</a>
|
2015-12-27 16:59:38 +01:00
|
|
|
<span marked="comment.content"></span>
|
2016-02-14 11:53:27 +01:00
|
|
|
<div class="meta">{{::comment.created_at.date | momentFromNow}}</div>
|
2015-10-25 03:35:37 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|