mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01:00
21 lines
911 B
HTML
21 lines
911 B
HTML
<div class="comments">
|
|
<h2>All Comments ({{resource.comments.length}})</h2>
|
|
<form class="pfm-form" ng-submit="addComment()" ng-show="::auth.isLogged">
|
|
<div class="form-row">
|
|
<input type="text" ng-model="content" placeholder="Write a comment…" />
|
|
</div>
|
|
</form>
|
|
<ul>
|
|
<li ng-show="resource.comments.length == 0" class="empty">
|
|
There are no comments yet!
|
|
</li>
|
|
<li ng-repeat="comment in resource.comments track by comment.id">
|
|
<img pfm-src-loader="::comment.user.avatars.thumbnail" pfm-src-size="thumbnail" />
|
|
<div class="content">
|
|
<a ng-href="{{::comment.user.url}}">{{::comment.user.name}}</a>
|
|
<span marked="comment.content"></span>
|
|
<div class="meta">{{::comment.created_at.date | momentFromNow}}</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|