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

22 lines
744 B
HTML
Raw Normal View History

2013-08-23 02:48:40 +02:00
<div class="comments" bindonce>
<h2>All Comments ({{resource.comments.length}})</h2>
2013-08-01 10:57:08 +02:00
<form class="pfm-form" ng-submit="addComment()" ng-show="auth.isLogged">
<div class="form-row">
2013-08-23 02:48:40 +02:00
<input type="text" ng-model="content" placeholder="Write a comment..." />
2013-08-01 10:57:08 +02:00
</div>
</form>
<ul>
<li ng-show="resource.comments.length == 0" class="empty">
There are no comments yet!
</li>
2013-08-23 02:48:40 +02:00
<li bindonce ng-repeat="comment in resource.comments">
<img bo-src="comment.user.avatars.thumbnail" />
<div class="content">
<a bo-href="comment.user.url" bo-text="comment.user.name"></a>
<span bo-text="comment.content"></span>
<div class="meta" bo-text="comment.created_at.date | momentFromNow">
</div>
</div>
</li>
</ul>
2013-08-01 10:57:08 +02:00
</div>