mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
run page: switch progress bar and nav buttons
the navigation buttons are more usable next to other navigation elements. This is especially noticeable on large monitors.
This commit is contained in:
parent
e29568f627
commit
4e9c4bfb04
@ -138,17 +138,16 @@
|
|||||||
|
|
||||||
<template id="run"><div style="display: grid; grid-template-rows: auto 1fr">
|
<template id="run"><div style="display: grid; grid-template-rows: auto 1fr">
|
||||||
<div style="padding: 15px">
|
<div style="padding: 15px">
|
||||||
<div style="display: grid; grid-template-columns: auto 1fr 400px auto auto; gap: 5px; align-items: center">
|
<div style="display: grid; grid-template-columns: auto 25px auto auto 1fr 400px; gap: 5px; align-items: center">
|
||||||
<h2 style="white-space: nowrap"><span v-html="runIcon(job.result)"></span> {{$route.params.name}} #{{$route.params.number}}</h2>
|
<h2 style="white-space: nowrap"><span v-html="runIcon(job.result)"></span> {{$route.params.name}} #{{$route.params.number}}</h2>
|
||||||
<span></span>
|
<span></span>
|
||||||
<div><!-- extra div to preserve grid columns when v-show hides the progress bar -->
|
<router-link :disabled="$route.params.number == 1" :to="'/jobs/'+$route.params.name+'/'+($route.params.number-1)" tag="button">«</router-link>
|
||||||
|
<router-link :disabled="$route.params.number == latestNum" :to="'/jobs/'+$route.params.name+'/'+(parseInt($route.params.number)+1)" tag="button">»</router-link>
|
||||||
|
<span></span>
|
||||||
<div class="progress" v-show="job.result == 'running'">
|
<div class="progress" v-show="job.result == 'running'">
|
||||||
<div class="progress-bar" :class="{overtime:job.overtime,indeterminate:!job.etc}" :style="job.etc && {width:job.progress+'%'}"></div>
|
<div class="progress-bar" :class="{overtime:job.overtime,indeterminate:!job.etc}" :style="job.etc && {width:job.progress+'%'}"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<router-link :disabled="$route.params.number == 1" :to="'/jobs/'+$route.params.name+'/'+($route.params.number-1)" tag="button">«</router-link>
|
|
||||||
<router-link :disabled="$route.params.number == latestNum" :to="'/jobs/'+$route.params.name+'/'+(parseInt($route.params.number)+1)" tag="button">»</router-link>
|
|
||||||
</div>
|
|
||||||
<div id="page-run-detail">
|
<div id="page-run-detail">
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Reason</dt><dd>{{job.reason}}</dd>
|
<dt>Reason</dt><dd>{{job.reason}}</dd>
|
||||||
|
Loading…
Reference in New Issue
Block a user