view themes/tuxlite_tbs/templates/simple_comments.html @ 36:96084c11584a

comment out the captcha code. Trying the new approach to accept any blog post comment and filter it through an email spam filter.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 01 Sep 2014 04:16:11 +0200
parents 7380bf280fc9
children c2b99e876559
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>
{% if False %}
    <form action="http://xanthippe.duckdns.org/blog-comments/simple_comments.php" method="POST">
{% endif %}
    <form action="http://xanthippe.duckdns.org/blog-comments/submit_comment.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>
{% if False %}
            <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>
{% endif %}
            <tr>
                <td>
                    <input type="submit" value="Submit">
                </td>
                <td></td>
            </tr>
        </table>
    </form>
</div>
{% endif %}