aboutsummaryrefslogtreecommitdiff
path: root/app/views/stats/idle.phtml
blob: 608e2d33c8f9b0f1f6083cdb0834f4a97a7e7ad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php $this->partial('aside_stats'); ?>

<div class="post">
	<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>

	<h1><?php echo _t('stats_idle'); ?></h1>

	<?php
		foreach ($this->idleFeeds as $period => $feeds) {
			if (!empty($feeds)) {
	?>
		<div class="stat">
			<h2><?php echo _t($period); ?></h2>

			<form id="form-delete" method="post" style="display: none"></form>

			<?php foreach ($feeds as $feed) { ?>
			<ul class="horizontal-list">
				<li class="item">
					<div class="stick">
						<a class="btn" href="<?php echo _url('index', 'index', 'get', 'f_' . $feed['id']); ?>"><?php echo _i('link'); ?> <?php echo _t('filter'); ?></a>
						<a class="btn" href="<?php echo _url('configure', 'feed', 'id', $feed['id']); ?>"><?php echo _i('configure'); ?> <?php echo _t('administration'); ?></a>
						<button class="btn btn-attention confirm" form="form-delete" formaction="<?php echo _url('feed', 'delete', 'id', $feed['id']); ?>"><?php echo _t('delete'); ?></button>
					</div>
				</li>
				<li class="item"><span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?></span></li>
			</ul>
			<?php } ?>
		</div>
	<?php
			}
		}
	?>
</div>