nested template

This commit is contained in:
Thorsten Witteler 2017-10-19 19:40:02 +02:00
parent 9387fba6ed
commit 1bc97a31e7
1 changed files with 9 additions and 11 deletions

View File

@ -8,21 +8,19 @@
<h3>{{'PLUGIN_COMMENTS.COMMENTS'|t}}</h3> <h3>{{'PLUGIN_COMMENTS.COMMENTS'|t}}</h3>
<div class="row comments"> <div class="row comments">
{% for comment in grav.twig.comments|array_reverse %} {% for comment in grav.twig.comments|array_reverse %}
<div class="media media-level-{{comment.level|e}}" data-Id="{{comment.id}}" > <div class="comment comment-level-{{comment.level|e}}" data-Id="{{comment.id}}" >
<div class="media-left"> <div class="comment-left">
<a href="#"> <a href="#">
<img class="media-object" style="width:100px;" src="https://www.gravatar.com/avatar/{{comment.email|trim|lower|md5}}?d=identicon" alt="user icon"> <img class="comment-object" src="https://www.gravatar.com/avatar/{{comment.email|trim|lower|md5}}?d=identicon" alt="user icon">
</a> </a>
</div> </div>
<div class="media-body"> <div class="comment-body">
<h4 class="media-heading">{{comment.title}}</h4> <div class="comment-heading">
<div class=""> <div class="comment-title"><h4>{{comment.title}}</h4></div>
<a class="reply-link" href="#">Reply</a> <div class="comment-reply"><a class="reply-link" href="#">Reply</a></div>
<div class="comment-meta">{{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author}}</div>
</div> </div>
<div class=""> <div class="comment-text" >
{{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author}}
</div>
<div class="media-text" >
{{comment.text}} {{comment.text}}
</div> </div>
{{nested}} {{nested}}