| | |
| | | } |
| | | |
| | | ?> |
| | | <aside id="queue" class="left col start btw main" aria-expanded="false" hidden> |
| | | <aside id="queue" class="left col start btw main" aria-expanded="false" > |
| | | <div class="status-actions row start nowrap"> |
| | | <div class="refresh row btw"> |
| | | <span class="countdown row" title="Will refresh again...">5</span> |
| | |
| | | foreach($filters as $filter => $title) { |
| | | $active = ($i === 0) ? ' active': ''; |
| | | ?> |
| | | <button class="filter<?=$active?>" data-filter="<?=$filter?>" data-count="0"><span class="count row"></span><?=$title?></button> |
| | | <input type="radio" id="qfilter-<?=$filter?>" name="qfilter" class="btn filter<?=$active?>" data-filter="<?=$filter?>"> |
| | | <label for="qfilter-<?=$filter?>" data-count="0"><span class="count row"></span><?=$title?></label> |
| | | <?php |
| | | $i++; |
| | | } |
| | |
| | | <button class="retry-all">Retry Failed</button> |
| | | </div> |
| | | </aside> |
| | | <button class="qtoggle row" title="Show Queue" aria-controls="queue" hidden> |
| | | <button class="qtoggle row" title="Show Queue" aria-controls="queue" > |
| | | <?= jvbIcon('floppy-disk') ?> |
| | | <span class="screen-reader-text"></span> |
| | | <span class="indicator"></span> |
| | |
| | | <div class="item"> |
| | | <div class="header row btw"> |
| | | <span class="type"></span> |
| | | <span class="status row"><span class="screen-reader-text"></span></span> |
| | | <span class="status row"><?= jvbIcon('arrows-clockwise') ?><span class="screen-reader-text"></span></span> |
| | | </div> |
| | | <?php jvbRenderProgressBar() ?> |
| | | <?php jvbRenderProgressBar('',false,false) ?> |
| | | <div class="info"> |
| | | <div class="details"></div> |
| | | <div class="time row start"> |
| | | <?= jvbIcon('clock') ?> |
| | | <span class="started">Started: <span class="time"></span> |
| | | <span class="completed"></span> |
| | | <span class="started">Started: <time></time></span> |
| | | <span class="completed" hidden><span>Completed: </span><time></time></span> |
| | | </div> |
| | | </div> |
| | | <div class="actions row end"> |
| | | <button class="retry" data-action="retry"><span>Retry</span><?= jvbIcon('arrows-clockwise')?></button> |
| | | <button class="cancel" data-action="cancel"><span>Cancel</span><?= jvbIcon('x-square')?></button> |
| | | <button class="dismiss" data-action="dismiss"><span>Dismiss</span><?= jvbIcon('eye-closed')?></button> |
| | | |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | return $out; |
| | | } |
| | | |
| | | function jvbRenderProgressBar(string $inside ='', $top = false) |
| | | function jvbRenderProgressBar(string $inside ='', $top = false, $icon = true) |
| | | { |
| | | $top = $top ? ' abs top' : ''; |
| | | ?> |
| | |
| | | <div class="fill"></div> |
| | | </div> |
| | | <div class="row btw"> |
| | | <i class="icon"></i> |
| | | <?php if ($icon) { ?> |
| | | <i class="icon"></i> |
| | | <?php } ?> |
| | | <div class="details"> |
| | | <?=$inside?> |
| | | </div> |