mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-26 14:58:00 +01:00
21 lines
No EOL
760 B
HTML
21 lines
No EOL
760 B
HTML
<div class="comments">
|
|
<div class="alert alert-info" ng-show="resource.comments.count == 0">
|
|
There are no comments yet!
|
|
</div>
|
|
<ul ng-show="resource.comments.length > 0">
|
|
<li ng-repeat="comment in resource.comments">
|
|
<div class="meta">
|
|
<a href="{{comment.user.url}}">{{comment.user.name}}</a> posted
|
|
{{comment.created_at.date | momentFromNow}}
|
|
</div>
|
|
<img ng-src="{{comment.user.avatars.thumbnail}}" />
|
|
<div class="content">{{comment.content}}</div>
|
|
</li>
|
|
</ul>
|
|
<form class="pfm-form" ng-submit="addComment()" ng-show="auth.isLogged">
|
|
<div class="form-row">
|
|
<textarea ng-model="content"></textarea>
|
|
</div>
|
|
<button type="submit" class="btn" ng-class="{disabled: content.length == 0}">Post Comment</button>
|
|
</form>
|
|
</div> |