| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <!-- Begin toolbar -->
- <div class="toolbar">
- <div class="toolbar-inner">
- <div class="toolbar-buttons">
- <a class="button button-secondary button-back js-button-back" href="/list/server/">
- <i class="fas fa-arrow-left icon-blue"></i><?= tohtml( _("Back")) ?>
- </a>
- <?php
- if ($autoupdate == 'Enabled') {
- $btn_url = '/delete/cron/autoupdate/?token='.$_SESSION['token'].'';
- $btn_icon = 'fa-toggle-on icon-green';
- $btn_label = _('Disable Automatic Updates');
- } else {
- $btn_url = '/add/cron/autoupdate/?token='.$_SESSION['token'].'';
- $btn_icon = 'fa-toggle-off icon-red';
- $btn_label = _('Enable Automatic Updates');
- }
- ?>
- <a class="button button-secondary" href="<?= tohtml($btn_url) ?>">
- <i class="fas <?= tohtml($btn_icon) ?>"></i><?= tohtml($btn_label) ?>
- </a>
- </div>
- </div>
- </div>
- <!-- End toolbar -->
- <div class="container">
- <h1 class="u-text-center u-hide-desktop u-mt20 u-pr30 u-mb20 u-pl30"><?= tohtml( _("Updates")) ?></h1>
- <div class="units-table js-units-container">
- <div class="units-table-header">
- <div class="units-table-cell"><?= tohtml( _("Package Name")) ?></div>
- <div class="units-table-cell"><?= tohtml( _("Description")) ?></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("Version")) ?></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("Status")) ?></div>
- </div>
- <!-- Begin update list item loop -->
- <?php
- foreach ($data as $key => $value) {
- ++$i;
- if ($data[$key]['UPDATED'] == 'yes') {
- $status = 'active';
- $upd_status = 'updated';
- } else {
- $status = 'suspended';
- $upd_status = 'outdated';
- }
- ?>
- <div class="units-table-row <?php if ($status == 'suspended') echo 'disabled'; ?> js-unit">
- <div class="units-table-cell units-table-heading-cell u-text-bold">
- <span class="u-hide-desktop"><?= tohtml( _("Package Names")) ?>:</span>
- <?= tohtml($key) ?>
- </div>
- <div class="units-table-cell">
- <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Description")) ?>:</span>
- <?= tohtml( _($data[$key]["DESCR"])) ?>
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Version")) ?>:</span>
- <?= tohtml($data[$key]["VERSION"]) ?> (<?= tohtml($data[$key]["ARCH"]) ?>)
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <span class="u-hide-desktop u-text-bold"><?= tohtml( _("Status")) ?>:</span>
- <?php if ($data[$key]['UPDATED'] == 'no'): ?>
- <i class="fas fa-triangle-exclamation icon-orange" title="<?= tohtml( _("Update available")) ?>"></i>
- <?php elseif ($data[$key]['UPDATED'] == 'yes'): ?>
- <i class="fas fa-circle-check icon-green" title="<?= tohtml( _("Package up-to-date")) ?>"></i>
- <?php endif; ?>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
|