mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-23 11:38:34 -04:00
Début d'affichage du nombre de favoris non lus
Mais pas encore de mise à jour dynamique Corrige en partie https://github.com/marienfressinaud/FreshRSS/issues/222
This commit is contained in:
1 parent
ff37ae8d49
commit
c237a4dc77
2 files changed
+3
-3
No files matched your search
@@ -64,7 +64,7 @@ class indexController extends ActionController {
|
||||
$catDAO = new CategoryDAO ();
|
||||
|
||||
$this->view->cat_aside = $catDAO->listCategories ();
|
||||
$this->view->nb_favorites = $entryDAO->countFavorites ();
|
||||
$this->view->nb_favorites = $entryDAO->countUnreadReadFavorites ();
|
||||
$this->view->nb_total = $entryDAO->count ();
|
||||
$this->view->currentName = '';
|
||||
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
<li>
|
||||
<div class="category favorites">
|
||||
<a data-unread="0" class="btn<?php echo $this->get_c == 'favoris' ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'favoris'); ?>">
|
||||
<a data-unread="<?php echo $this->nb_favorites['unread']; ?>" class="btn<?php echo $this->get_c == 'favoris' ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'favoris'); ?>">
|
||||
<i class="icon i_bookmark"></i>
|
||||
<?php echo Translate::t ('favorite_feeds', $this->nb_favorites); ?>
|
||||
<?php echo Translate::t ('favorite_feeds', $this->nb_favorites['read'] + $this->nb_favorites['unread']); ?>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in new issue
Block a user