view themes/tuxlite_tbs/templates/simple_comments.html @ 11:bb1f035109da

turn off comments for the eclipse validation article which attracts comment spam
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 18 Jul 2013 02:19:49 +0200
parents bd8e75de187a
children 7bfdc2b1d768
line wrap: on
line source

{% if article.comments %}
    {% for comment in article.comments %}
    <div style="border-bottom: 1px dotted #CCCCCC; padding: 20px 0px 20px 0px;">
        <div style="font-weight: bold;">
            {{ comment.Author }}
        </div>
        <div style="font-size: 80%; padding: 0px 0px 10px 0px;">
            {{ comment.Date }}
        </div>
        <div>
            {{ comment.text }}
        </div>
    </div>
    {% endfor %}
{% endif %}
{% if article.metadata.allowcomments %}
<div style="padding: 20px 0px 0px 0px;">
    <div style="font-size: 120%;">
        Leave a comment
    </div>
    <form action="http://xanthippe.dyndns.org/blog-comments/simple_comments.php" method="POST">
        <input type="hidden" name="Slug" value="{{ article.slug }}">
        <div style="padding: 10px 0px 0px 0px;">
            Your name: <input type="text" name="Author">
        </div>
        <div>
            <textarea rows="5" cols="60" name="Comment"></textarea>
        </div>
        <div>
            <input type="submit" value="Submit">
        </div>
    </form>
</div>
{% endif %}