idle.phtml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /** @var FreshRSS_View $this */
  3. $this->partial('aside_subscription');
  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.stats.idle') ?></h1>
  10. <?php
  11. $current_url = Minz_Url::display(
  12. array('c' => 'stats', 'a' => 'idle'),
  13. 'php', true
  14. );
  15. $nothing = true;
  16. foreach ($this->idleFeeds as $period => $feeds) {
  17. if (!empty($feeds)) {
  18. $nothing = false;
  19. ?>
  20. <div class="box">
  21. <div class="box-title"><?= _t('gen.date.' . $period) ?></div>
  22. <ul class="box-content">
  23. <?php foreach ($feeds as $feed) { ?>
  24. <li class="item feed">
  25. <a class="configure open-slider" href="<?= _url('stats', 'feed', 'id', $feed['id'], 'sub', 'idle') ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a>
  26. <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feed['favicon'] ?>" alt="✇" loading="lazy" /><?php endif; ?>
  27. <span title="<?= timestamptodate($feed['last_date'], false) ?>"><?= $feed['name'] ?>
  28. (<?= _t('admin.stats.number_entries', $feed['nb_articles']) ?>)</span>
  29. </li>
  30. <?php } ?>
  31. </ul>
  32. </div>
  33. <?php
  34. }
  35. }
  36. if ($nothing) {
  37. ?>
  38. <p class="alert alert-warn">
  39. <span class="alert-head"><?= _t('admin.stats.no_idle') ?></span>
  40. </p>
  41. <?php } ?>
  42. <?php $class = $this->displaySlider ? ' class="active"' : ''; ?>
  43. <a href="#" id="close-slider"<?= $class ?>>
  44. <?= _i('close') ?>
  45. </a>
  46. <div id="slider"<?= $class ?>>
  47. <?php
  48. if (isset($this->feed)) {
  49. $this->renderHelper('feed/update');
  50. }
  51. ?>
  52. </div>
  53. </main>