miniflux-legacy/src/templates/feeds.php

33 lines
1.1 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: ?>
<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-02-18 03:48:21 +01:00
<a href="?action=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 ?>