view themes/tuxlite_tbs/templates/simple_comments.html @ 27:04a8afe79c59

swith to anydns.info
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 08 Apr 2014 12:03:13 +0200
parents 7bfdc2b1d768
children 7380bf280fc9
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.anydns.info/blog-comments/simple_comments.php" method="POST">
        <input type="hidden" name="Slug" value="{{ article.slug }}">
        <table  style="padding: 10px 0px 0px 0px;">
            <tr>
                <td>
                    Your name:
                </td>
                <td>
                    <input type="text" name="Author">
                </td>
            </tr>
            <tr>
                <td>
                    Comment:
                </td>
                <td>
                    <textarea rows="5" cols="60" name="Comment"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    Please type the characters you see in this image:
                <td>
                <td></td>
            </tr>
            <tr>
                <td>
                    <img src="{{ SITEURL }}/{{ article.slug }}.jpg">
                </td>
                <td>
                    <input type="text" name="Challenge">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="Submit">
                </td>
                <td></td>
            </tr>
        </table>
    </form>
</div>
{% endif %}