idle.phtml 1.6 KB

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