Replace mark as read link by an icon
This commit is contained in:
parent
0455d14d73
commit
04749a4aba
@ -638,11 +638,16 @@ span.downloading img {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a.bookmark-icon {
|
||||
a.icon {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.icon:focus,
|
||||
a.icon:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#item-content-enclosure {
|
||||
border-bottom: 1px dashed #ccc;
|
||||
margin-bottom: 20px;
|
||||
|
@ -46,6 +46,7 @@ Router\get_action('show', function() {
|
||||
$feed = Model\Feed\get($item['feed_id']);
|
||||
|
||||
Model\Item\set_read($id);
|
||||
$item['status'] = 'read';
|
||||
|
||||
switch ($menu) {
|
||||
case 'unread':
|
||||
|
@ -37,13 +37,20 @@
|
||||
<ul class="item-infos">
|
||||
<li>
|
||||
<a
|
||||
class="bookmark-icon"
|
||||
class="bookmark-icon icon"
|
||||
href="?action=bookmark&value=<?= (int)!$item['bookmark'] ?>&id=<?= $item['id'] ?>&source=show&menu=<?= $menu ?>"
|
||||
title="<?= ($item['bookmark']) ? t('remove bookmark') : t('bookmark') ?>"
|
||||
data-reverse-title="<?= ($item['bookmark']) ? t('bookmark') :t('remove bookmark') ?>"
|
||||
data-action="bookmark"
|
||||
></a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
href="?action=mark-item-unread&id=<?= $item['id'] ?>&redirect=<?= $menu ?>&feed_id=<?= $item['feed_id'] ?>"
|
||||
title="<?= t('mark as unread') ?>"
|
||||
class="read-icon icon"
|
||||
></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>
|
||||
</li>
|
||||
@ -55,11 +62,6 @@
|
||||
<a href="<?= $item['enclosure'] ?>" rel="noreferrer" target="_blank"><?= t('attachment') ?></a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<li>
|
||||
<a
|
||||
href="?action=mark-item-unread&id=<?= $item['id'] ?>&redirect=unread"
|
||||
><?= t('mark as unread') ?></a>
|
||||
</li>
|
||||
<li class="hide-mobile">
|
||||
<span id="download-item"
|
||||
data-failure-message="<?= t('unable to fetch content') ?>"
|
||||
|
Loading…
Reference in New Issue
Block a user