idle.phtml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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" aria-hidden="true"></form>
  18. <?php foreach ($feeds as $feed) { ?>
  19. <ul class="horizontal-list">
  20. <li class="item">
  21. <div class="stick">
  22. <a class="btn" href="<?php echo _url('index', 'index', 'get', 'f_' . $feed['id']); ?>"><?php echo _i('link'); ?> <?php echo _t('gen.action.filter'); ?></a>
  23. <a class="btn" href="<?php echo _url('subscription', 'index', 'id', $feed['id']); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.action.manage'); ?></a>
  24. <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>
  25. </div>
  26. </li>
  27. <li class="item">
  28. <span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?> (<?php echo _t('admin.stats.number_entries', $feed['nb_articles']); ?>)</span>
  29. </li>
  30. </ul>
  31. <?php } ?>
  32. </div>
  33. <?php
  34. }
  35. }
  36. if ($nothing) {
  37. ?>
  38. <p class="alert alert-warn">
  39. <span class="alert-head"><?php echo _t('admin.stats.no_idle'); ?></span>
  40. </p>
  41. <?php } ?>
  42. </div>