aboutsummaryrefslogtreecommitdiff
path: root/app/layout/aside.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-30 22:30:40 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-30 22:30:40 +0100
commit0f2891f4325d6f88845790393d006883831118fd (patch)
tree29720da808978990185a9ca5987a09621a8149d5 /app/layout/aside.phtml
parent3a8a6d2d56c468af924936a80e110727bc503594 (diff)
Fix issue #8 : ajoute le nombre de non lus pour les catégories (mérite amélioration ?)
Diffstat (limited to 'app/layout/aside.phtml')
-rw-r--r--app/layout/aside.phtml18
1 files changed, 13 insertions, 5 deletions
diff --git a/app/layout/aside.phtml b/app/layout/aside.phtml
index 7f33bff2f..61efae7c3 100644
--- a/app/layout/aside.phtml
+++ b/app/layout/aside.phtml
@@ -8,9 +8,7 @@
<ul id="menu">
<li <?php echo Request::controllerName () == 'index' ? 'class="active"' : ''; ?>>
- <a href="<?php echo Url::display (array ()); ?>">
- Flux RSS <span class="nb_not_read"><?php if ($this->nb_not_read > 0) { ?>(<?php echo $this->nb_not_read; ?> non lu<?php echo $this->nb_not_read > 1 ? 's' : ''; ?>)<?php } ?></span>
- </a>
+ <a href="<?php echo Url::display (array ()); ?>">Flux RSS</a>
</li>
<?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
@@ -36,12 +34,22 @@
<?php if (isset ($this->cat_aside)) { ?>
<ul id="categories">
- <li class="all<?php echo !$this->get ? ' active' : ''; ?>"><a href="<?php echo Url::display (array ()); ?>">Tous <span><?php echo $this->nb_total; ?> article<?php echo $this->nb_total > 1 ? 's' : ''; ?></span></a></li>
+ <li class="all<?php echo !$this->get ? ' active' : ''; ?>">
+ <a href="<?php echo Url::display (array ()); ?>">
+ Tous
+ <span><?php echo $this->nb_total; ?> article<?php echo $this->nb_total > 1 ? 's' : ''; ?> (<span class="nb_not_read"><?php echo $this->nb_not_read; ?></span>)</span>
+ </a>
+ </li>
<li class="favorites<?php echo $this->get == 'favoris' ? ' active' : ''; ?>"><a href="<?php echo Url::display (array ('params' => array ('get' => 'favoris'))); ?>">Favoris <span><?php echo $this->nb_favorites; ?> article<?php echo $this->nb_favorites > 1 ? 's' : ''; ?></span></a></li>
<?php foreach ($this->cat_aside as $cat) { ?>
- <li class="category<?php echo $this->get == $cat->id () ? ' active' : ''; ?>"><a href="<?php echo Url::display (array ('params' => array ('get' => $cat->id ()))); ?>"><?php echo $cat->name (); ?> <span><?php echo $cat->nbFeed (); ?> flux</span></a></li>
+ <li class="category<?php echo $this->get == $cat->id () ? ' active' : ''; ?>">
+ <a href="<?php echo Url::display (array ('params' => array ('get' => $cat->id ()))); ?>">
+ <?php echo $cat->name (); ?>
+ <span><?php echo $cat->nbFeed (); ?> flux (<?php echo $cat->nbNotRead (); ?>)</span>
+ </a>
+ </li>
<?php } ?>
</ul>
<?php } ?>