Number of unread articles as prefix in page title

https://github.com/marienfressinaud/FreshRSS/issues/536
This commit is contained in:
Alexandre Alapetite committed 2014-07-13 22:36:34 +02:00
1 parent 85bae5436c
commit 2da4c13263
2 files changed
+10 -8

No files matched your search

+3 -3
View File
@@ -70,11 +70,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 (' (' . formatNumber($this->view->nb_not_read) . ')');
Minz_View::prependTitle('(' . formatNumber($this->view->nb_not_read) . ') ');
}
Minz_View::prependTitle (
Minz_View::prependTitle(
($this->nb_not_read_cat > 0 ? '(' . formatNumber($this->nb_not_read_cat) . ') ' : '') .
$this->view->currentName .
($this->nb_not_read_cat > 0 ? ' (' . formatNumber($this->nb_not_read_cat) . ')' : '') .
' · '
);