|
@@ -1,4 +1,4 @@
|
|
|
-<div class="post <: $style :>">
|
|
|
|
|
|
|
+<div class="post <: $style :> <: $tiled ? 'tile' : '' :>">
|
|
|
: if ( !$post.addpost ) {
|
|
: if ( !$post.addpost ) {
|
|
|
: if ( $post.unreachable ) {
|
|
: if ( $post.unreachable ) {
|
|
|
<h3 class='blogtitles'><: $post.title :></h3>
|
|
<h3 class='blogtitles'><: $post.title :></h3>
|
|
@@ -6,31 +6,41 @@
|
|
|
Could not reach this hypervisor: <: $post.state :>
|
|
Could not reach this hypervisor: <: $post.state :>
|
|
|
</div>
|
|
</div>
|
|
|
: } else {
|
|
: } else {
|
|
|
- <h3 class='blogtitles'>
|
|
|
|
|
- <: $post.title :>
|
|
|
|
|
- <span class="guest-state guest-<: $post.is_active ? 'up' : 'down' :>"><: $post.state :></span>
|
|
|
|
|
- </h3>
|
|
|
|
|
- <div class="postData responsive-text" id="postData-<: $post.id :>">
|
|
|
|
|
- <img src="<: $post.preview :>" class="responsive-img guest-screenshot" alt="console of <: $post.title :>" loading="lazy" />
|
|
|
|
|
- <br />
|
|
|
|
|
- on <: $post.hypervisor_title :> — <: $post.vcpus :> vCPU
|
|
|
|
|
- : if ( $can_edit ) {
|
|
|
|
|
- <br />
|
|
|
|
|
- <form class="Submissions guest-actions" action="/guest/act" method="POST">
|
|
|
|
|
- <input type="hidden" name="hypervisor" value="<: $post.hypervisor :>" />
|
|
|
|
|
- <input type="hidden" name="guest" value="<: $post.domain :>" />
|
|
|
|
|
- <input type="hidden" name="to" value="<: $route :>" />
|
|
|
|
|
- : if ( $post.is_active ) {
|
|
|
|
|
- <button class="coolbutton" type="submit" name="action" value="poweroff">Power Off</button>
|
|
|
|
|
- : } else {
|
|
|
|
|
- <button class="coolbutton" type="submit" name="action" value="poweron">Power On</button>
|
|
|
|
|
|
|
+ : if ( $tiled ) {
|
|
|
|
|
+ <a href="<: $post.preview :>" class="undecorated" title="<: $post.title :> (<: $post.state :>)">
|
|
|
|
|
+ <img src="<: $post.preview :>" class="responsive-img guest-screenshot" alt="console of <: $post.title :>" loading="lazy" />
|
|
|
|
|
+ <p class="midtitle">
|
|
|
|
|
+ <: $post.title :>
|
|
|
|
|
+ <span class="guest-state guest-<: $post.is_active ? 'up' : 'down' :>"><: $post.state :></span>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ : } else {
|
|
|
|
|
+ <h3 class='blogtitles'>
|
|
|
|
|
+ <: $post.title :>
|
|
|
|
|
+ <span class="guest-state guest-<: $post.is_active ? 'up' : 'down' :>"><: $post.state :></span>
|
|
|
|
|
+ </h3>
|
|
|
|
|
+ <div class="postData responsive-text" id="postData-<: $post.id :>">
|
|
|
|
|
+ <img src="<: $post.preview :>" class="responsive-img guest-screenshot" alt="console of <: $post.title :>" loading="lazy" />
|
|
|
|
|
+ <br />
|
|
|
|
|
+ on <: $post.hypervisor_title :> — <: $post.vcpus :> vCPU
|
|
|
|
|
+ : if ( $can_edit ) {
|
|
|
|
|
+ <br />
|
|
|
|
|
+ <form class="Submissions guest-actions" action="/guest/act" method="POST">
|
|
|
|
|
+ <input type="hidden" name="hypervisor" value="<: $post.hypervisor :>" />
|
|
|
|
|
+ <input type="hidden" name="guest" value="<: $post.domain :>" />
|
|
|
|
|
+ <input type="hidden" name="to" value="<: $route :>" />
|
|
|
|
|
+ : if ( $post.is_active ) {
|
|
|
|
|
+ <button class="coolbutton" type="submit" name="action" value="poweroff">Power Off</button>
|
|
|
|
|
+ : } else {
|
|
|
|
|
+ <button class="coolbutton" type="submit" name="action" value="poweron">Power On</button>
|
|
|
|
|
+ : }
|
|
|
|
|
+ <button class="coolbutton" type="submit" name="action" value="snapshot">Snapshot</button>
|
|
|
|
|
+ <button class="coolbutton guest-destroy" type="submit" name="action" value="destroy"
|
|
|
|
|
+ onclick="return confirm('Destroy <: $post.title :>? This stops the guest immediately.');">Destroy</button>
|
|
|
|
|
+ </form>
|
|
|
: }
|
|
: }
|
|
|
- <button class="coolbutton" type="submit" name="action" value="snapshot">Snapshot</button>
|
|
|
|
|
- <button class="coolbutton guest-destroy" type="submit" name="action" value="destroy"
|
|
|
|
|
- onclick="return confirm('Destroy <: $post.title :>? This stops the guest immediately.');">Destroy</button>
|
|
|
|
|
- </form>
|
|
|
|
|
- : }
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ : }
|
|
|
: }
|
|
: }
|
|
|
: }
|
|
: }
|
|
|
</div>
|
|
</div>
|