Mercurial > kallithea
view docs/theme/nature/layout.html @ 6823:2e72d2d16a0f
comments: display comment previews while submitting
Instead of just saying 'Submitting' and not showing any progress to
the user until the comment has been accepted by the server, show a
preview of the comment above the comment box in a way which is makes
it obvious to the user the comment is being submitted. Apart from
that, also clear the comment box so that a repeated clicking the
submit button doesn't result in a duplicate comment.
The preview doesn't highlight URLs or support @mentions or *bold*,
which is a good enough approximation in this case. When/if we (re-)add
the rST/Markdown support, we will need a client-side parser for the
syntax we choose.
When the submission fails, display a message and offer the user to
retry or cancel the submission.
author | Andrew Shadura <andrew@shadura.me> |
---|---|
date | Mon, 10 Jul 2017 13:13:10 -0500 |
parents | 60e04a21bf0f |
children | ec4e69a60aae |
line wrap: on
line source
{% extends "basic/layout.html" %} {% block sidebarlogo %} <div style="text-align:center;margin:30px 0;"> <img src="{{pathto('_static/kallithea-logo.svg',1)}}" width="200px"/> </div> <h3>Support Kallithea development</h3> <div style="text-align:center"> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="EYXFS3SQPHYUL"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> <div style="padding:5px"> <a href="https://flattr.com/thing/922714/Donate-to-Software-Freedom-Conservancy" target="_blank"> <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a> </div> </div> {% endblock %}}