Pony.fm/public/templates/directives/comments.html

22 lines
988 B
HTML
Raw Normal View History

<div class="comments">
2015-10-25 03:35:37 +01:00
<h2>All Comments ({{resource.comments.length}})</h2>
<form class="pfm-form" ng-submit="addComment()" ng-show="::auth.isLogged">
2015-10-25 03:35:37 +01:00
<div class="form-row">
<input type="text" ng-model="content" placeholder="Write a comment&hellip;" />
2015-10-25 03:35:37 +01:00
</div>
</form>
2016-08-07 16:22:49 +02:00
<md-list>
2015-10-25 03:35:37 +01:00
<li ng-show="resource.comments.length == 0" class="empty">
There are no comments yet!
</li>
2016-08-07 16:22:49 +02:00
<md-list-item ng-repeat="comment in resource.comments track by comment.id" class="md-3-line">
<img pfm-src-loader="::comment.user.avatars.thumbnail" class="md-avatar" alt="::comment.user.name" pfm-src-size="thumbnail" />
<div class="md-list-item-text">
<a ng-href="{{::comment.user.url}}">{{::comment.user.name}}</a>
2016-08-07 16:22:49 +02:00
<h4>{{::comment.content}}</h4>
<p>{{::comment.created_at.date | momentFromNow}}</p>
2015-10-25 03:35:37 +01:00
</div>
2016-08-07 16:22:49 +02:00
</md-list-item>
</md-list>
2015-10-25 03:35:37 +01:00
</div>