idle.phtml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php $this->partial('aside_stats'); ?>
  2. <div class="post">
  3. <a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
  4. <h1><?= _t('admin.stats.idle') ?></h1>
  5. <?php
  6. $current_url = Minz_Url::display(
  7. array('c' => 'stats', 'a' => 'idle'),
  8. 'php', true
  9. );
  10. $nothing = true;
  11. foreach ($this->idleFeeds as $period => $feeds) {
  12. if (!empty($feeds)) {
  13. $nothing = false;
  14. ?>
  15. <div class="stat">
  16. <h2><?= _t('gen.date.' . $period) ?></h2>
  17. <form id="form-delete" method="post">
  18. <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
  19. <?php foreach ($feeds as $feed) { ?>
  20. <ul class="horizontal-list">
  21. <li class="item">
  22. <div class="stick">
  23. <a class="btn" href="<?= _url('index', 'index', 'get', 'f_' . $feed['id']) ?>"><?= _i('link') ?> <?= _t('gen.action.filter') ?></a>
  24. <a class="btn" href="<?= _url('subscription', 'index', 'id', $feed['id']) ?>"><?= _i('configure') ?> <?= _t('gen.action.manage') ?></a>
  25. <button class="btn btn-attention confirm" form="form-delete" formaction="<?= _url('feed', 'delete', 'id', $feed['id'], 'r', $current_url) ?>"><?= _t('gen.action.remove') ?></button>
  26. </div>
  27. </li>
  28. <li class="item">
  29. <span title="<?= timestamptodate($feed['last_date'], false) ?>"><?= $feed['name'] ?> (<?= _t('admin.stats.number_entries', $feed['nb_articles']) ?>)</span>
  30. </li>
  31. </ul>
  32. <?php } ?>
  33. </form>
  34. </div>
  35. <?php
  36. }
  37. }
  38. if ($nothing) {
  39. ?>
  40. <p class="alert alert-warn">
  41. <span class="alert-head"><?= _t('admin.stats.no_idle') ?></span>
  42. </p>
  43. <?php } ?>
  44. </div>