Add link "mark all as read" in the footer
This commit is contained in:
parent
c2ce24a427
commit
fe0a5f4a55
@ -379,6 +379,14 @@ nav .active a {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#bottom-menu {
|
||||
border-top: 1px dashed #ddd;
|
||||
border-bottom: 1px dashed #ddd;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.feed-disabled,
|
||||
.feed-disabled a {
|
||||
color: #aaa;
|
||||
@ -547,8 +555,9 @@ span.downloading img {
|
||||
}
|
||||
|
||||
#items-paging {
|
||||
margin-top: 50px;
|
||||
font-size: 75%;
|
||||
margin-top: 40px;
|
||||
margin-bottom: 15px;
|
||||
font-size: 80%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@ -634,6 +643,10 @@ iframe {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.items .preview {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
section li {
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
return array(
|
||||
'This subscription is empty, <a href="?action=unread">go back to unread items</a>' => 'Cet abonnement est vide, <a href="?action=unread">retourner à la liste des éléments non lus</a>',
|
||||
'sort by date (%s)' => 'trier par date (%s)',
|
||||
'sort by date<span class="hide-mobile"> (%s)</span>' => 'trier par date<span class="hide-mobile"> (%s)</span>',
|
||||
'most recent' => 'plus récents',
|
||||
'older' => 'anciens d\'abord',
|
||||
'Show only this subscription' => 'Montrer seulement cet abonnement',
|
||||
|
@ -48,11 +48,11 @@
|
||||
|
||||
<nav id="items-paging">
|
||||
<?php if ($offset > 0): ?>
|
||||
<a id="previous-page" href="?action=bookmarks&offset=<?= ($offset - $items_per_page) ?>">⇽ <?= t('Previous page') ?></a>
|
||||
<a id="previous-page" href="?action=bookmarks&offset=<?= ($offset - $items_per_page) ?>">« <?= t('Previous page') ?></a>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (($nb_items - $offset) > $items_per_page): ?>
|
||||
<a id="next-page" href="?action=bookmarks&offset=<?= ($offset + $items_per_page) ?>"><?= t('Next page') ?> ⇾</a>
|
||||
<a id="next-page" href="?action=bookmarks&offset=<?= ($offset + $items_per_page) ?>"><?= t('Next page') ?> »</a>
|
||||
<?php endif ?>
|
||||
</nav>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<h2><?= Helper\escape($feed['title']) ?> (<?= $nb_items ?>)</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>&order=updated&direction=<?= $direction == 'asc' ? 'desc' : 'asc' ?>"><?= t('sort by date (%s)', $direction == 'desc' ? t('older') : t('most recent')) ?></a>
|
||||
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>&order=updated&direction=<?= $direction == 'asc' ? 'desc' : 'asc' ?>"><?= t('sort by date<span class="hide-mobile"> (%s)</span>', $direction == 'desc' ? t('older') : t('most recent')) ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?action=mark-feed-as-read&feed_id=<?= $feed['id'] ?>" data-action="mark-feed-read" data-feed-id="<?= $feed['id'] ?>"><?= t('mark all as read') ?></a>
|
||||
@ -51,15 +51,20 @@
|
||||
</article>
|
||||
<?php endforeach ?>
|
||||
|
||||
<nav id="items-paging">
|
||||
<div id="bottom-menu">
|
||||
<a href="?action=mark-feed-as-read&feed_id=<?= $feed['id'] ?>" data-action="mark-feed-read" data-feed-id="<?= $feed['id'] ?>"><?= t('mark all as read') ?></a>
|
||||
</div>
|
||||
|
||||
<div id="items-paging">
|
||||
<?php if ($offset > 0): ?>
|
||||
<a id="previous-page" href="?action=feed-items&feed_id=<?= $feed['id'] ?>&offset=<?= ($offset - $items_per_page) ?>&order=<?= $order ?>&direction=<?= $direction ?>">⇽ <?= t('Previous page') ?></a>
|
||||
<a id="previous-page" href="?action=feed-items&feed_id=<?= $feed['id'] ?>&offset=<?= ($offset - $items_per_page) ?>&order=<?= $order ?>&direction=<?= $direction ?>">« <?= t('Previous page') ?></a>
|
||||
-
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (($nb_items - $offset) > $items_per_page): ?>
|
||||
<a id="next-page" href="?action=feed-items&feed_id=<?= $feed['id'] ?>&offset=<?= ($offset + $items_per_page) ?>&order=<?= $order ?>&direction=<?= $direction ?>"><?= t('Next page') ?> ⇾</a>
|
||||
<a id="next-page" href="?action=feed-items&feed_id=<?= $feed['id'] ?>&offset=<?= ($offset + $items_per_page) ?>&order=<?= $order ?>&direction=<?= $direction ?>"><?= t('Next page') ?> »</a>
|
||||
<?php endif ?>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
@ -63,11 +63,11 @@
|
||||
|
||||
<nav id="items-paging">
|
||||
<?php if ($offset > 0): ?>
|
||||
<a id="previous-page" href="?action=history&offset=<?= ($offset - $items_per_page) ?>">⇽ <?= t('Previous page') ?></a>
|
||||
<a id="previous-page" href="?action=history&offset=<?= ($offset - $items_per_page) ?>">« <?= t('Previous page') ?></a>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (($nb_items - $offset) > $items_per_page): ?>
|
||||
<a id="next-page" href="?action=history&offset=<?= ($offset + $items_per_page) ?>"><?= t('Next page') ?> ⇾</a>
|
||||
<a id="next-page" href="?action=history&offset=<?= ($offset + $items_per_page) ?>"><?= t('Next page') ?> »</a>
|
||||
<?php endif ?>
|
||||
</nav>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<h2><?= t('<span id="page-counter">%s</span>unread items', isset($nb_items) ? $nb_items.' ' : '') ?></h2>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="?action=unread&order=updated&direction=<?= $direction == 'asc' ? 'desc' : 'asc' ?>"><?= t('sort by date (%s)', $direction == 'desc' ? t('older') : t('most recent')) ?></a>
|
||||
<a href="?action=unread&order=updated&direction=<?= $direction == 'asc' ? 'desc' : 'asc' ?>"><?= t('sort by date<span class="hide-mobile"> (%s)</span>', $direction == 'desc' ? t('older') : t('most recent')) ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?action=mark-as-read" data-action="mark-all-read"><?= t('mark all as read') ?></a>
|
||||
@ -66,15 +66,19 @@
|
||||
</article>
|
||||
<?php endforeach ?>
|
||||
|
||||
<nav id="items-paging">
|
||||
<div id="bottom-menu">
|
||||
<a href="?action=mark-as-read" data-action="mark-all-read"><?= t('mark all as read') ?></a>
|
||||
</div>
|
||||
|
||||
<div id="items-paging">
|
||||
<?php if ($offset > 0): ?>
|
||||
<a id="previous-page" href="?action=unread&offset=<?= ($offset - $items_per_page) ?>&order=<?= $order ?>&direction=<?= $direction ?>">⇽ <?= t('Previous page') ?></a>
|
||||
<a id="previous-page" href="?action=unread&offset=<?= ($offset - $items_per_page) ?>&order=<?= $order ?>&direction=<?= $direction ?>">« <?= t('Previous page') ?></a>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (($nb_items - $offset) > $items_per_page): ?>
|
||||
<a id="next-page" href="?action=unread&offset=<?= ($offset + $items_per_page) ?>&order=<?= $order ?>&direction=<?= $direction ?>"><?= t('Next page') ?> ⇾</a>
|
||||
<a id="next-page" href="?action=unread&offset=<?= ($offset + $items_per_page) ?>&order=<?= $order ?>&direction=<?= $direction ?>"><?= t('Next page') ?> »</a>
|
||||
<?php endif ?>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user