2013-02-18 03:48:21 +01:00
|
|
|
<div class="page-header">
|
2013-04-13 03:08:55 +02:00
|
|
|
<h2><?= t('Subscriptions') ?></h2>
|
2013-02-24 20:04:56 +01:00
|
|
|
<ul>
|
2013-04-13 03:08:55 +02:00
|
|
|
<li><a href="?action=add"><?= t('add') ?></a></li>
|
|
|
|
<li><a href="?action=import"><?= t('import') ?></a></li>
|
|
|
|
<li><a href="?action=export"><?= t('export') ?></a></li>
|
|
|
|
<li><a href="?action=refresh-all" data-action="refresh-all"><?= t('refresh all') ?></a></li>
|
2013-02-24 20:04:56 +01:00
|
|
|
</ul>
|
2013-02-18 03:48:21 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (empty($feeds)): ?>
|
|
|
|
|
2013-04-13 03:08:55 +02:00
|
|
|
<p class="alert alert-info"><?= t('No subscription') ?></p>
|
2013-02-18 03:48:21 +01:00
|
|
|
|
|
|
|
<?php else: ?>
|
|
|
|
|
2013-03-17 23:16:25 +01:00
|
|
|
<?php if ($nothing_to_read): ?>
|
2013-04-13 03:08:55 +02:00
|
|
|
<p class="alert"><?= t('Nothing to read, do you want to <a href="?action=refresh-all" data-action="refresh-all">update your subscriptions?</a>') ?></p>
|
2013-03-17 23:16:25 +01:00
|
|
|
<?php endif ?>
|
|
|
|
|
2013-02-18 03:48:21 +01:00
|
|
|
<section class="items">
|
|
|
|
<?php foreach ($feeds as $feed): ?>
|
|
|
|
<article>
|
2013-08-04 21:15:12 +02:00
|
|
|
<h2 class="<?= (! $feed['enabled']) ? 'feed-disabled' : '' ?>">
|
|
|
|
<?php if (! $feed['enabled']): ?>
|
2013-08-04 22:06:14 +02:00
|
|
|
<span title="<?= t('Subscription disabled') ?>">✖</a>
|
2013-08-04 21:15:12 +02:00
|
|
|
<?php else: ?>
|
|
|
|
<span id="loading-feed-<?= $feed['id'] ?>"></span>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2013-08-31 17:05:45 +02:00
|
|
|
<a href="?action=feed-items&feed_id=<?= $feed['id'] ?>"><?= Helper\escape($feed['title']) ?></a>
|
2013-08-04 21:15:12 +02:00
|
|
|
|
2013-08-04 21:37:56 +02:00
|
|
|
<?php if ($feed['enabled']): ?>
|
|
|
|
<?php if ($feed['last_checked']): ?>
|
|
|
|
<time class="feed-last-checked" id="last-checked-feed-<?= $feed['id'] ?>" data-after-update="<?= t('updated just now') ?>">
|
|
|
|
<?= t('checked at').' '.dt('%e %B %Y %k:%M', $feed['last_checked']) ?>
|
|
|
|
</time>
|
|
|
|
<?php else: ?>
|
|
|
|
<span class="feed-last-checked" id="last-checked-feed-<?= $feed['id'] ?>" data-after-update="<?= t('now') ?>">
|
|
|
|
<?= t('never updated after creation') ?>
|
|
|
|
</span>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php endif ?>
|
2013-02-24 20:04:56 +01:00
|
|
|
</h2>
|
2013-02-18 03:48:21 +01:00
|
|
|
<p>
|
2013-04-13 03:08:55 +02:00
|
|
|
<a href="<?= $feed['site_url'] ?>" rel="noreferrer" target="_blank"><?= Helper\get_host_from_url($feed['site_url']) ?></a> |
|
2013-08-04 21:15:12 +02:00
|
|
|
|
2013-07-20 02:39:49 +02:00
|
|
|
<span class="hide-mobile"><a href="?action=confirm-remove-feed&feed_id=<?= $feed['id'] ?>"><?= t('remove') ?></a> |</span>
|
2013-08-04 21:15:12 +02:00
|
|
|
|
2013-08-31 17:05:45 +02:00
|
|
|
<?php if ($feed['download_content']): ?>
|
|
|
|
<span class="hide-mobile"><a href="?action=disable-grabber-feed&feed_id=<?= $feed['id'] ?>"><strong><?= t('disable full content') ?></strong></a> |</span>
|
|
|
|
<?php else: ?>
|
|
|
|
<span class="hide-mobile"><a href="?action=enable-grabber-feed&feed_id=<?= $feed['id'] ?>"><?= t('enable full content') ?></a> |</span>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2013-08-04 21:15:12 +02:00
|
|
|
<?php if ($feed['enabled']): ?>
|
|
|
|
<span class="hide-mobile"><a href="?action=confirm-disable-feed&feed_id=<?= $feed['id'] ?>"><?= t('disable') ?></a> |</span>
|
2013-08-31 17:05:45 +02:00
|
|
|
<a href="?action=refresh-feed&feed_id=<?= $feed['id'] ?>" data-feed-id="<?= $feed['id'] ?>" data-action="refresh-feed"><?= t('refresh') ?></a>
|
2013-08-04 21:15:12 +02:00
|
|
|
<?php else: ?>
|
2013-08-31 17:05:45 +02:00
|
|
|
<span class="hide-mobile"><a href="?action=enable-feed&feed_id=<?= $feed['id'] ?>"><?= t('enable') ?></a></span>
|
2013-08-04 21:15:12 +02:00
|
|
|
<?php endif ?>
|
2013-02-18 03:48:21 +01:00
|
|
|
</p>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<?php endif ?>
|