: # Declared private in the sidecar, so a reader who cannot edit
: # never receives it -- there is nothing here to remember to guard.
: if ( $post.preview ) {
: }
on <: $post.hypervisor_title :> — <: $post.vcpus :> vCPU
: if ( $can_edit && $post.recipe ) {
Recipe — <: $post.recipe_path :>
<: $post.recipe :>
: }
: if ( $can_edit && $post.reprovision_log ) {
Last reprovision — <: $post.reprovision_status :>
: if ( $post.reprovision_exit ) {
(exit <: $post.reprovision_exit :>)
: }
<: $post.reprovision_log :>
: if ( $post.reprovision_log_href ) {
Read the whole log
: }
: }
: if ( $can_edit ) {
: # Separate form, because this one carries a passphrase and has
: # no business sharing a submit with the buttons above.
: # can_reprovision is false while one is running, so this is
: # the only thing drawn for a guest mid-provision.
: if ( $post.is_reprovisioning ) {
Reprovisioning now
: if ( $post.reprovision_by ) {
— started by <: $post.reprovision_by :>
: }
: if ( $post.reprovision_log_href ) {
— watch the log
: }
: }
: if ( $post.can_reprovision ) {
: }
: }
: }
: }