mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-18 17:32:44 -04:00
* add close button, add content slider div * add &ajax=1#slider to the links * CSS * fix showPW functionality * open slider after received Ajax * do not show empty slider * RTL CSS * fixed code smell * improved: links prep via JS * Redirect anchor * enable #anchors in printuri() * enable #slider when config was saved * Active sliding via JS Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
67 lines
2.1 KiB
PHTML
67 lines
2.1 KiB
PHTML
<?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 = isset($this->feed) ? ' active' : ''; ?>
|
|
<aside id="slider" class="scrollbar-thin<?= $class ?>">
|
|
<a class="toggle_aside" href="#close"><img class="icon" src="../themes/icons/close.svg" loading="lazy" alt="❌"></a>
|
|
<div id="slider-content">
|
|
<?php
|
|
if (isset($this->feed)) {
|
|
$this->renderHelper('feed/update');
|
|
}
|
|
?>
|
|
</div>
|
|
</aside>
|
|
<a href="#" id="close-slider" class="<?= $class ?>">
|
|
<?= _i('close') ?>
|
|
</a>
|