1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-21 13:41:37 +00:00

Closes #42: Gravatar images in comments

This commit is contained in:
jendib
2015-11-19 00:05:04 +01:00
parent 82b39586f0
commit fc3a8bb4ae
7 changed files with 67 additions and 7 deletions

View File

@@ -72,15 +72,22 @@
<p ng-show="!comments && commentsError">Error loading comments</p>
</div>
<div ng-repeat="comment in comments" style="overflow: hidden">
<strong>{{ comment.creator }}</strong>
<p>
{{ comment.content }}<br />
<span class="text-muted">{{ comment.create_date | date: 'yyyy-MM-dd' }}</span>
<div ng-repeat="comment in comments" class="media" style="overflow: hidden">
<div class="pull-left">
<a href="#">
<img ng-src="http://www.gravatar.com/avatar/{{ comment.creator_gravatar }}?s=40&d=identicon" class="media-object" />
</a>
</div>
<div class="media-body">
<strong>{{ comment.creator }}</strong>
<p>
{{ comment.content }}<br />
<span class="text-muted">{{ comment.create_date | date: 'yyyy-MM-dd' }}</span>
<span class="text-muted pull-right btn-link"
ng-show="document.writable || userInfo.username == comment.creator"
ng-click="deleteComment(comment)">Delete</span>
</p>
</p>
</div>
</div>
<form ng-submit="addComment()">