index.phtml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /** @var FreshRSS_View $this */
  3. $this->partial('aside_configure');
  4. ?>
  5. <main class="post">
  6. <div class="link-back-wrapper">
  7. <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
  8. </div>
  9. <h1><?= _t('admin.update') ?></h1>
  10. <p>
  11. <?= _i('help') ?> <?= _t('admin.update.current_version', FRESHRSS_VERSION) ?>
  12. </p>
  13. <p>
  14. <?= _t('admin.update.last', $this->last_update_time) ?>
  15. </p>
  16. <?php if (!empty($this->message)) { ?>
  17. <?php
  18. $class = 'alert-warn';
  19. switch ($this->message['status']) {
  20. case 'bad':
  21. $class = 'alert-error';
  22. break;
  23. case 'latest':
  24. $class = 'alert-success';
  25. break;
  26. default:
  27. $class = 'alert-warn';
  28. break;
  29. }
  30. ?>
  31. <p class="alert <?= $class ?>">
  32. <span class="alert-head"><?= $this->message['title'] ?></span>
  33. <?= $this->message['body'] ?>
  34. </p>
  35. <?php } ?>
  36. <?php
  37. if (empty($this->message) || $this->message['status'] !== 'good') {
  38. ?>
  39. <p>
  40. <a href="<?= _url('update', 'check') ?>" class="btn"><?= _t('admin.update.check') ?></a>
  41. </p>
  42. <?php } ?>
  43. <?php if ($this->update_to_apply) { ?>
  44. <a class="btn btn-important" href="<?= _url('update', 'apply') ?>"><?= _t('admin.update.apply') ?></a>
  45. <?php } ?>
  46. </main>