| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /** @var FreshRSS_View $this */
- $this->partial('aside_subscription');
- ?>
- <main class="post">
- <div class="link-back-wrapper">
- <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
- </div>
- <h1><?= _t('admin.stats.idle') ?></h1>
- <?php
- $current_url = Minz_Url::display(
- array('c' => 'stats', 'a' => 'idle'),
- 'php', true
- );
- $nothing = true;
- foreach ($this->idleFeeds as $period => $feedsInPeriod) {
- if (!empty($feedsInPeriod)) {
- $nothing = false;
- ?>
- <div class="box">
- <div class="box-title"><?= _t('gen.date.' . $period) ?></div>
- <ul class="box-content">
- <?php
- foreach ($feedsInPeriod as $feedInPeriod) {
- $feed = $this->feeds[$feedInPeriod['id']] ?? null;
- $error = $feed == null || $feed->inError() ? ' error' : '';
- $empty = $feed != null && $feed->nbEntries() == 0 ? ' empty' : '';
- ?>
- <li class="item feed<?= $error, $empty, $feed->mute() ? ' mute' : '' ?>">
- <a class="configure open-slider" href="<?= _url('stats', 'feed', 'id', $feedInPeriod['id'], 'sub', 'idle') ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a>
- <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feedInPeriod['favicon'] ?>" alt="✇" loading="lazy" /><?php endif; ?>
- <span title="<?= timestamptodate($feedInPeriod['last_date'], false) ?>"><?= $feedInPeriod['name'] ?>
- (<?= _t('admin.stats.number_entries', $feedInPeriod['nb_articles']) ?>)</span>
- </li>
- <?php } ?>
- </ul>
- </div>
- <?php
- }
- }
- if ($nothing) {
- ?>
- <p class="alert alert-warn">
- <span class="alert-head"><?= _t('admin.stats.no_idle') ?></span>
- </p>
- <?php } ?>
- </main>
- <?php $class = $this->displaySlider ? ' active' : ''; ?>
- <aside id="slider" class="scrollbar-thin<?= $class ?>">
- <?php
- if (isset($this->feed)) {
- $this->renderHelper('feed/update');
- }
- ?>
- </aside>
- <a href="#" id="close-slider" class="<?= $class ?>">
- <?= _i('close') ?>
- </a>
|