Add link to "feed-items" on all listing

This commit is contained in:
Frederic Guillot 2013-08-04 14:22:53 -04:00
parent 5096c3bd6c
commit b05049a83e
5 changed files with 8 additions and 8 deletions

View File

@ -569,7 +569,7 @@ Router\notfound(function() {
'nb_unread_items' => $nb_items,
'offset' => $offset,
'items_per_page' => Model\get_config_value('items_per_page'),
'title' => 'miniflux ('.$nb_items.')',
'title' => 'Miniflux ('.$nb_items.')',
'menu' => 'unread'
)));
});

View File

@ -378,7 +378,7 @@ function get_unread_items($offset = null, $limit = null)
{
return \PicoTools\singleton('db')
->table('items')
->columns('items.id', 'items.title', 'items.updated', 'items.url', 'items.content', 'items.bookmark', 'items.status', 'feeds.site_url', 'feeds.title AS feed_title')
->columns('items.id', 'items.title', 'items.updated', 'items.url', 'items.content', 'items.bookmark', 'items.status', 'items.feed_id', 'feeds.site_url', 'feeds.title AS feed_title')
->join('feeds', 'id', 'feed_id')
->eq('status', 'unread')
->desc('updated')
@ -401,7 +401,7 @@ function get_read_items($offset = null, $limit = null)
{
return \PicoTools\singleton('db')
->table('items')
->columns('items.id', 'items.title', 'items.updated', 'items.url', 'items.bookmark', 'feeds.site_url', 'feeds.title AS feed_title')
->columns('items.id', 'items.title', 'items.updated', 'items.url', 'items.bookmark', 'items.feed_id', 'feeds.site_url', 'feeds.title AS feed_title')
->join('feeds', 'id', 'feed_id')
->eq('status', 'read')
->desc('updated')
@ -425,7 +425,7 @@ function get_bookmarks($offset = null, $limit = null)
{
return \PicoTools\singleton('db')
->table('items')
->columns('items.id', 'items.title', 'items.updated', 'items.url', 'items.status', 'feeds.site_url', 'feeds.title AS feed_title')
->columns('items.id', 'items.title', 'items.updated', 'items.url', 'items.status', 'items.feed_id', 'feeds.site_url', 'feeds.title AS feed_title')
->join('feeds', 'id', 'feed_id')
->in('status', array('read', 'unread'))
->eq('bookmark', 1)
@ -450,7 +450,7 @@ function get_feed_items($feed_id, $offset = null, $limit = null)
{
return \PicoTools\singleton('db')
->table('items')
->columns('items.id', 'items.title', 'items.updated', 'items.url', 'items.status', 'items.bookmark', 'feeds.site_url')
->columns('items.id', 'items.title', 'items.updated', 'items.url', 'items.feed_id', 'items.status', 'items.bookmark', 'feeds.site_url')
->join('feeds', 'id', 'feed_id')
->in('status', array('read', 'unread'))
->eq('feed_id', $feed_id)

View File

@ -21,7 +21,7 @@
</a>
</h2>
<p>
<?= Helper\escape($item['feed_title']) ?> |
<a href="?action=feed-items&amp;feed_id=<?= $item['feed_id'] ?>"><?= Helper\escape($item['feed_title']) ?></a> |
<?= dt('%e %B %Y %k:%M', $item['updated']) ?> |
<span class="hide-mobile">

View File

@ -23,7 +23,7 @@
</a>
</h2>
<p>
<?= Helper\escape($item['feed_title']) ?> |
<a href="?action=feed-items&amp;feed_id=<?= $item['feed_id'] ?>"><?= Helper\escape($item['feed_title']) ?></a> |
<span class="hide-mobile"><?= dt('%e %B %Y %k:%M', $item['updated']) ?> |</span>

View File

@ -32,7 +32,7 @@
<?= Helper\escape(Helper\summary(strip_tags($item['content']), 50, 300)) ?>
</p>
<p>
<?= Helper\escape($item['feed_title']) ?> |
<a href="?action=feed-items&amp;feed_id=<?= $item['feed_id'] ?>"><?= Helper\escape($item['feed_title']) ?></a> |
<span class="hide-mobile"><?= dt('%e %B %Y %k:%M', $item['updated']) ?> |</span>
<span class="hide-mobile">