summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-04-14 18:34:24 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-04-14 18:34:24 -0400
commitbdd7b7b13e6fdcdb9110cbee3618bf2b5fc89b71 (patch)
tree26fcb9f61234f5d2cc9edcdf7fe681e43f896a7d /app
parent6323311cb4f2c89c695feb747566a05b5cb8044a (diff)
Revert delete favorite button
Diffstat (limited to 'app')
-rw-r--r--app/i18n/en.php1
-rw-r--r--app/i18n/fr.php1
-rw-r--r--app/layout/aside_flux.phtml9
3 files changed, 11 insertions, 0 deletions
diff --git a/app/i18n/en.php b/app/i18n/en.php
index 01f31eca7..b41fb4281 100644
--- a/app/i18n/en.php
+++ b/app/i18n/en.php
@@ -27,6 +27,7 @@ return array (
'subscription_management' => 'Subscriptions management',
'main_stream' => 'Main stream',
'all_feeds' => 'All feeds',
+ 'favorite_feeds' => 'Favourites (%d)',
'not_read' => '%d unread',
'not_reads' => '%d unread',
diff --git a/app/i18n/fr.php b/app/i18n/fr.php
index 299d4d242..e7d61f313 100644
--- a/app/i18n/fr.php
+++ b/app/i18n/fr.php
@@ -27,6 +27,7 @@ return array (
'subscription_management' => 'Gestion des abonnements',
'main_stream' => 'Flux principal',
'all_feeds' => 'Tous les flux',
+ 'favorite_feeds' => 'Favoris (%d)',
'not_read' => '%d non lu',
'not_reads' => '%d non lus',
diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtml
index 0542e6b66..817dae676 100644
--- a/app/layout/aside_flux.phtml
+++ b/app/layout/aside_flux.phtml
@@ -28,6 +28,15 @@
</div>
</li>
+ <li>
+ <div class="category favorites<?php echo $this->get_c == 's' ? ' active' : ''; ?>">
+ <a data-unread="<?php echo formatNumber($this->nb_favorites['unread']); ?>" class="btn<?php echo $this->get_c == 's' ? ' active' : ''; ?>" href="<?php $arUrl['params']['get'] = 's'; echo Minz_Url::display($arUrl); ?>">
+ <?php echo FreshRSS_Themes::icon('bookmark'); ?>
+ <?php echo Minz_Translate::t('favorite_feeds', formatNumber($this->nb_favorites['all'])); ?>
+ </a>
+ </div>
+ </li>
+
<?php
foreach ($this->cat_aside as $cat) {
$feeds = $cat->feeds ();