diff options
| author | 2022-02-05 10:57:36 +0100 | |
|---|---|---|
| committer | 2022-02-05 10:57:36 +0100 | |
| commit | be9c06fd5c1bfed8e0147c938b96e4876df98133 (patch) | |
| tree | 3113a9d106ee19f3d5a43dce6620a1b03d72341e /app/views/stats | |
| parent | dc27baa7d67f4bc601ced80229844a88a7ca23d4 (diff) | |
Improved: Idle feeds list in a new layout (#4192)
* that should work fine
* fixed phpcs
* fixed phpcs
Diffstat (limited to 'app/views/stats')
| -rw-r--r-- | app/views/stats/idle.phtml | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml index 40feb4a03..6b2141ba2 100644 --- a/app/views/stats/idle.phtml +++ b/app/views/stats/idle.phtml @@ -20,29 +20,19 @@ if (!empty($feeds)) { $nothing = false; ?> - <div class="stat"> - <h2><?= _t('gen.date.' . $period) ?></h2> - - <form id="form-delete" method="post"> - <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> - <?php foreach ($feeds as $feed) { ?> - <ul class="horizontal-list"> - <li class="item"> - <div class="stick"> - <a class="btn" href="<?= _url('index', 'index', 'get', 'f_' . $feed['id']) ?>"><?= _i('link') ?> <?= _t('gen.action.filter') ?></a> - <a class="btn" href="<?= _url('subscription', 'index', 'id', $feed['id']) ?>"><?= _i('configure') ?> <?= _t('gen.action.manage') ?></a> - <button class="btn btn-attention confirm" form="form-delete" - formaction="<?= _url('feed', 'delete', 'id', $feed['id'], 'r', $current_url) ?>"><?= _t('gen.action.remove') ?></button> - </div> - </li> - <li class="item"> - <span title="<?= timestamptodate($feed['last_date'], false) ?>"><?= $feed['name'] ?> - (<?= _t('admin.stats.number_entries', $feed['nb_articles']) ?>)</span> - </li> + <div class="box"> + <div class="box-title"><?= _t('gen.date.' . $period) ?></div> + <ul class="box-content"> + <?php foreach ($feeds as $feed) { ?> + <li class="item feed"> + <a class="configure open-slider" href="<?= _url('stats', 'feed', 'id', $feed['id'], 'sub', 'idle') ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a> + <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feed['favicon'] ?>" alt="✇" loading="lazy" /><?php endif; ?> + <span title="<?= timestamptodate($feed['last_date'], false) ?>"><?= $feed['name'] ?> + (<?= _t('admin.stats.number_entries', $feed['nb_articles']) ?>)</span> + </li> + <?php } ?> </ul> - <?php } ?> - </form> - </div> + </div> <?php } } @@ -53,4 +43,16 @@ <span class="alert-head"><?= _t('admin.stats.no_idle') ?></span> </p> <?php } ?> + + <?php $class = $this->displaySlider ? ' class="active"' : ''; ?> + <a href="#" id="close-slider"<?= $class ?>> + <?= _i('close') ?> + </a> + <div id="slider"<?= $class ?>> + <?php + if (isset($this->feed)) { + $this->renderHelper('feed/update'); + } + ?> + </div> </main> |
