Mercurial > piecrust2
diff foodtruck/templates/publish.html @ 602:c6bc0ef03f82
admin: Better UI for publishing websites.
* Support multiple publish targets.
* Dedicated UI for publishing.
* Some UI polish.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 27 Jan 2016 18:02:25 -0800 |
parents | |
children | c2708f20a87b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/foodtruck/templates/publish.html Wed Jan 27 18:02:25 2016 -0800 @@ -0,0 +1,22 @@ +{% extends 'layouts/default.html' %} + +{% block content %} +<div class="container"> + <h1>Publish {{site_title}}</h1> + + {% for target in targets %} + <div> + <h2>{{target.name}}</h2> + {% if target.description %}<div>{{target.description}}</div>{% endif %} + {% if target.cmd %}<p>Run <code>{{target.cmd}}</code>.</p>{% endif %} + <form action="{{url_run}}" method="POST"> + <input type="hidden" name="target" value="{{target.name}}" /> + <button type="submit" class="btn btn-default">Execute</button> + </form> + </div> + {% endfor %} +</div> + +{% endblock %} + +