From fdefc8c731c05d8a7db626e55fe41d7211488f98 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 27 Jan 2014 22:35:27 +0100 Subject: Formatage des nombres https://github.com/marienfressinaud/FreshRSS/pull/398 --- app/Controllers/indexController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Controllers') diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index c49054a5c..70560b98b 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -66,11 +66,11 @@ class FreshRSS_index_Controller extends Minz_ActionController { // mise à jour des titres $this->view->rss_title = $this->view->currentName . ' | ' . Minz_View::title(); if ($this->view->nb_not_read > 0) { - Minz_View::appendTitle (' (' . $this->view->nb_not_read . ')'); + Minz_View::appendTitle (' (' . formatNumber($this->view->nb_not_read) . ')'); } Minz_View::prependTitle ( $this->view->currentName . - ($this->nb_not_read_cat > 0 ? ' (' . $this->nb_not_read_cat . ')' : '') . + ($this->nb_not_read_cat > 0 ? ' (' . formatNumber($this->nb_not_read_cat) . ')' : '') . ' · ' ); -- cgit v1.2.3 From ec48755fc163bc1c975cdf53c2f19a19d6a1ade7 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 27 Jan 2014 22:46:35 +0100 Subject: Ajout authentification + titre pour page stats --- app/Controllers/indexController.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/Controllers') diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index 70560b98b..7d6d73c28 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -194,6 +194,15 @@ class FreshRSS_index_Controller extends Minz_ActionController { } public function statsAction () { + if (!$this->view->loginOk) { + Minz_Error::error ( + 403, + array ('error' => array (Minz_Translate::t ('access_denied'))) + ); + } + + Minz_View::prependTitle (Minz_Translate::t ('stats') . ' · '); + $statsDAO = new FreshRSS_StatsDAO (); Minz_View::appendScript (Minz_Url::display ('/scripts/flotr2.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/flotr2.min.js'))); $this->view->repartition = $statsDAO->calculateEntryRepartition(); -- cgit v1.2.3