Mercurial > hg > Blog
annotate themes/tuxlite_tbs/templates/pelican_comment_system.html @ 72:c2b99e876559 pelican_comment_system
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 02 Jan 2016 04:47:39 +0100 |
parents | |
children |
rev | line source |
---|---|
72
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 {% if article.comments %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 {% for comment in article.comments recursive %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 {% if loop.depth0 == 0 %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 {% set marginLeft = 0 %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 {% else %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 {% set marginLeft = 50 %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 {% endif %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 <article id="comment-{{comment.slug}}" style="border: 1px solid #DDDDDD; padding: 5px 0px 0px 5px; margin: 0px -1px 5px {{marginLeft}}px;"> |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 <a href="{{ SITEURL }}/{{ article.url }}#comment-{{comment.slug}}" rel="bookmark" title="Permalink to this comment">Permalink</a> |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 <h4>{{ comment.author }}</h4> |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 <p>Posted on <abbr class="published" title="{{ comment.date.isoformat() }}">{{ comment.locale_date }}</abbr></p> |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 {{ comment.metadata['my_custom_metadata'] }} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 {{ comment.content }} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 {% if comment.replies %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 {{ loop(comment.replies) }} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 {% endif %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 </article> |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 {% endfor %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 {% else %} |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 <p>There are no comments yet.<p> |
c2b99e876559
use the pelican_plugin_system from the standard pelican plugins instead of my own simple_comments
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 {% endif %} |