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