Number of unread articles as prefix in page title

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

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) . ')' : '') .
' · '
);