Mercurial > wikked
diff static/tpl/edit-page.html @ 148:f02e049d6546
Vaguely better error reporting for when editing a page fails.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 11 Dec 2013 21:51:51 -0800 |
parents | 74690402fef2 |
children |
line wrap: on
line diff
--- a/static/tpl/edit-page.html Wed Dec 11 21:51:26 2013 -0800 +++ b/static/tpl/edit-page.html Wed Dec 11 21:51:51 2013 -0800 @@ -12,6 +12,11 @@ </ul> </div> </section> + {{#if error}} + <section class="alert alert-danger"> + <p><strong>Error:</strong> {{error.message}}</p> + </section> + {{/if}} <section id="wmd-input-wrapper"> <textarea id="wmd-input" name="text" placeholder="Your page's contents go here...">{{content}}</textarea> <div id="wmd-input-grip"></div>