2013-02-18 03:48:21 +01:00
< div class = " page-header " >
2016-10-02 04:24:33 +02:00
< h2 >< ? php echo t ( 'Subscriptions' ) ?> </h2>
2015-01-15 02:18:24 +01:00
< nav >
< ul >
2016-10-02 04:24:33 +02:00
< li >< a href = " ?action=add " >< ? php echo t ( 'add' ) ?> </a></li>
< li class = " active " >< a href = " ?action=feeds " >< ? php echo t ( 'feeds' ) ?> </a></li>
< li >< a href = " ?action=import " >< ? php echo t ( 'import' ) ?> </a></li>
< li >< a href = " ?action=export " >< ? php echo t ( 'export' ) ?> </a></li>
< li >< a href = " ?action=refresh-all " data - action = " refresh-all " data - concurrent - requests = " <?php echo SUBSCRIPTION_CONCURRENT_REQUESTS ?> " >< ? php echo t ( 'refresh all' ) ?> </a></li>
2015-01-15 02:18:24 +01:00
</ ul >
</ nav >
2013-02-18 03:48:21 +01:00
</ div >
< ? php if ( empty ( $feeds )) : ?>
2016-10-02 04:24:33 +02:00
< p class = " alert alert-info " >< ? php echo t ( 'No subscription' ) ?> </p>
2013-02-18 03:48:21 +01:00
< ? php else : ?>
2016-12-28 03:59:09 +01:00
< ? php if ( $nothing_to_read ) : ?>
2016-10-02 04:24:33 +02:00
< p class = " alert alert-info " >< ? php echo tne ( 'Nothing to read, do you want to %supdate your subscriptions%s?' , '<a href="?action=refresh-all" data-action="refresh-all">' , '</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 ) : ?>
2016-12-28 04:20:25 +01:00
< article data - feed - id = " <?php echo $feed['id'] ?> " < ? php echo ( ! $feed [ 'enabled' ]) ? 'data-feed-disabled="1"' : '' ?> <?php echo $feed['parsing_error'] > 0 ? 'data-feed-error="1"' : '' ?>>
2014-12-31 13:43:05 +01:00
< h2 >
2013-08-04 21:15:12 +02:00
< ? php if ( ! $feed [ 'enabled' ]) : ?>
2016-10-02 04:24:33 +02:00
< span title = " <?php echo t('Subscription disabled') ?> " > ✖ </ span >
2013-08-04 21:15:12 +02:00
< ? php endif ?>
2016-10-02 04:24:33 +02:00
< ? php echo Miniflux\Helper\favicon ( $favicons , $feed [ 'id' ]) ?>
2014-12-25 00:12:41 +01:00
2016-10-02 04:24:33 +02:00
< a href = " ?action=feed-items&feed_id=<?php echo $feed['id'] ?> " title = " <?php echo t('Show only this subscription') ?> " >< ? php echo Miniflux\Helper\escape ( $feed [ 'title' ]) ?> </a>
& lrm ; < span class = " items-count " >< ? php echo $feed [ 'items_unread' ], '/' , $feed [ 'items_total' ] ?> </span>
2014-02-23 01:45:02 +01:00
2013-08-04 21:37:56 +02:00
< ? php if ( $feed [ 'enabled' ]) : ?>
2013-12-16 01:24:51 +01:00
< br />
2013-08-04 21:37:56 +02:00
< ? php if ( $feed [ 'last_checked' ]) : ?>
2016-10-02 04:24:33 +02:00
< time class = " feed-last-checked " data - after - update = " <?php echo t('updated just now') ?> " >
< ? php echo t ( 'checked at' ), ' ' , dt ( '%e %B %Y %k:%M' , $feed [ 'last_checked' ]) ?>
2013-08-04 21:37:56 +02:00
</ time >
< ? php else : ?>
2016-10-02 04:24:33 +02:00
< span class = " feed-last-checked " data - after - update = " <?php echo t('updated just now') ?> " >
< ? php echo t ( 'never updated after creation' ) ?>
2013-08-04 21:37:56 +02:00
</ span >
< ? php endif ?>
< ? php endif ?>
2017-01-15 20:00:32 +01:00
< span class = " feed-parsing-error " >
< ? php echo t ( 'An error occurred during the last check: "%s".' , $feed [ 'parsing_error_message' ]) ?>
</ span >
2013-02-24 20:04:56 +01:00
</ h2 >
2017-01-15 20:51:55 +01:00
< ? php if ( ! empty ( $feed [ 'groups' ])) : ?>
< ul class = " feed-groups " >
< ? php foreach ( $feed [ 'groups' ] as $group ) : ?>
< li >
< ? php echo Miniflux\Helper\link ( $group [ 'title' ], 'unread' , array ( 'group_id' => $group [ 'id' ])) ?>
</ li >
< ? php endforeach ?>
</ ul >
< ? php endif ?>
2014-02-15 03:21:14 +01:00
< ul class = " item-menu " >
< li >
2016-10-02 04:24:33 +02:00
< a href = " <?php echo $feed['site_url'] ?> " rel = " noreferrer " target = " _blank " >< ? php echo Miniflux\Helper\get_host_from_url ( $feed [ 'site_url' ]) ?> </a>
2014-02-15 03:21:14 +01:00
</ li >
2014-02-18 04:04:49 +01:00
< ? php if ( $feed [ 'enabled' ]) : ?>
< li >
2016-10-02 04:24:33 +02:00
< a href = " ?action=refresh-feed&feed_id=<?php echo $feed['id'] ?> " data - action = " refresh-feed " >< ? php echo t ( 'refresh' ) ?> </a>
2014-02-18 04:04:49 +01:00
</ li >
< ? php endif ?>
2016-10-02 04:24:33 +02:00
< li >< a href = " ?action=edit-feed&feed_id=<?php echo $feed['id'] ?> " >< ? php echo t ( 'edit' ) ?> </a></li>
2014-02-15 03:21:14 +01:00
</ ul >
2013-02-18 03:48:21 +01:00
</ article >
< ? php endforeach ?>
</ section >
2016-08-25 03:17:58 +02:00
< ? php endif ?>