view piecrust/admin/templates/publish.html @ 960:8101692fdc11

admin: Add a "rebake preview assets" button to the dashboard. Baking preview assets is needed for showing the site preview. Also, add flashed messages.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 07 Oct 2017 12:13:57 -0700
parents 4f136b746081
children 96ea68c36a74
line wrap: on
line source

{% extends 'layouts/default.html' %}

{% block content %}
<h1>Publish {{site_title}}</h1>

{% with messages = get_flashed_messages() %}
{% for message in messages %}
<p class="bg-info">{{message}}</p>
{% endfor %}
{% endwith %}

{% for target in targets %}
<div>
    <h3>{{target.name}}</h3>
    {% if target.description %}<p>{{target.description}}</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 %}

{% if last_log %}
<h2>Last Publish Log</h2>
<pre><code>
{{last_log}}
</code></pre>
{% endif %}

{% endblock %}