A free, self-hostable news aggregator…
Idle feeds: link to configuration page
Alexandre Alapetite937cb4b066f0
diff --git a/app/Controllers/statsController.php b/app/Controllers/statsController.phpindex 9009468bc..be58dd0eb 100644--- a/app/Controllers/statsController.php+++ b/app/Controllers/statsController.php@@ -4,9 +4,9 @@ class FreshRSS_stats_Controller extends Minz_ActionController {public function indexAction() {$statsDAO = FreshRSS_Factory::createStatsDAO();- Minz_View::appendScript (Minz_Url::display ('/scripts/flotr2.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/flotr2.min.js')));+ Minz_View::appendScript(Minz_Url::display('/scripts/flotr2.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/flotr2.min.js')));$this->view->repartition = $statsDAO->calculateEntryRepartition();- $this->view->count = ($statsDAO->calculateEntryCount());+ $this->view->count = $statsDAO->calculateEntryCount();$this->view->feedByCategory = $statsDAO->calculateFeedByCategory();$this->view->entryByCategory = $statsDAO->calculateEntryByCategory();$this->view->topFeed = $statsDAO->calculateTopFeed();@@ -35,19 +35,19 @@ class FreshRSS_stats_Controller extends Minz_ActionController {continue;}if ($feedDate < $lastWeek) {- $idleFeeds['last_week'][] = $feed['name'];+ $idleFeeds['last_week'][] = $feed;}if ($feedDate < $lastMonth) {- $idleFeeds['last_month'][] = $feed['name'];+ $idleFeeds['last_month'][] = $feed;}if ($feedDate < $last3Month) {- $idleFeeds['last_3_month'][] = $feed['name'];+ $idleFeeds['last_3_month'][] = $feed;}if ($feedDate < $last6Month) {- $idleFeeds['last_6_month'][] = $feed['name'];+ $idleFeeds['last_6_month'][] = $feed;}if ($feedDate < $lastYear) {- $idleFeeds['last_year'][] = $feed['name'];+ $idleFeeds['last_year'][] = $feed;}}diff --git a/app/Models/StatsDAO.php b/app/Models/StatsDAO.phpindex 66f5104b3..9a88a4fcf 100644--- a/app/Models/StatsDAO.php+++ b/app/Models/StatsDAO.php@@ -170,7 +170,8 @@ SQL;*/public function calculateFeedLastDate() {$sql = <<<SQL-SELECT MAX(f.name) AS name+SELECT MAX(f.id) as id+, MAX(f.name) AS name, MAX(date) AS last_dateFROM {$this->prefix}feed AS f,{$this->prefix}entry AS ediff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtmlindex 356fea20f..f62fa8d8b 100644--- a/app/views/stats/idle.phtml+++ b/app/views/stats/idle.phtml@@ -11,7 +11,7 @@<ul><?php foreach ($feeds as $feed){ ?>- <li><?php echo $feed; ?></li>+ <li><a href="<?php echo _url('configure', 'feed', 'id', $feed['id']); ?>"><?php echo $feed['name']; ?></a></li><?php } ?></ul></div>