idle.phtml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php $this->partial('aside_stats'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
  4. <h1><?php echo _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><?php echo _t('gen.date.' . $period); ?></h2>
  17. <form id="form-delete" method="post">
  18. <input type="hidden" name="_csrf" value="<?php echo 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="<?php echo _url('index', 'index', 'get', 'f_' . $feed['id']); ?>"><?php echo _i('link'); ?> <?php echo _t('gen.action.filter'); ?></a>
  24. <a class="btn" href="<?php echo _url('subscription', 'index', 'id', $feed['id']); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.action.manage'); ?></a>
  25. <button class="btn btn-attention confirm" form="form-delete" formaction="<?php echo _url('feed', 'delete', 'id', $feed['id'], 'r', $current_url); ?>"><?php echo _t('gen.action.remove'); ?></button>
  26. </div>
  27. </li>
  28. <li class="item">
  29. <span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?> (<?php echo _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"><?php echo _t('admin.stats.no_idle'); ?></span>
  42. </p>
  43. <?php } ?>
  44. </div>