miniflux-legacy/miniflux/templates/feeds.php

38 lines
1.4 KiB
PHP
Raw Normal View History

2013-02-18 03:48:21 +01:00
<div class="page-header">
<h2>Subscriptions</h2>
2013-02-24 20:04:56 +01:00
<ul>
<li><a href="?action=add">add</a></li>
<li><a href="?action=import">import</a></li>
<li><a href="?action=export">export</a></li>
<li><a href="?action=refresh-all" data-action="refresh-all">refresh all</a></li>
</ul>
2013-02-18 03:48:21 +01:00
</div>
<?php if (empty($feeds)): ?>
2013-02-24 20:04:56 +01:00
<p class="alert alert-info">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): ?>
<p class="alert">Nothing to read, do you want to <a href="?action=refresh-all" data-action="refresh-all">update your subscriptions?</a></p>
<?php endif ?>
2013-02-18 03:48:21 +01:00
<section class="items">
<?php foreach ($feeds as $feed): ?>
<article>
2013-02-24 20:04:56 +01:00
<h2>
<span id="loading-feed-<?= $feed['id'] ?>"></span>
<a href="<?= $feed['site_url'] ?>" rel="noreferrer" target="_blank"><?= Helper\escape($feed['title']) ?></a>
</h2>
2013-02-18 03:48:21 +01:00
<p>
2013-02-24 20:04:56 +01:00
<?= Helper\get_host_from_url($feed['site_url']) ?> |
2013-03-17 23:16:25 +01:00
<a href="<?= Helper\escape($feed['feed_url']) ?>">feed link</a> |
<a href="?action=confirm-remove&amp;feed_id=<?= $feed['id'] ?>">remove</a> |
2013-02-24 20:04:56 +01:00
<a href="?action=refresh-feed&amp;feed_id=<?= $feed['id'] ?>" data-feed-id="<?= $feed['id'] ?>" data-action="refresh-feed">refresh</a>
2013-02-18 03:48:21 +01:00
</p>
</article>
<?php endforeach ?>
</section>
<?php endif ?>