diff options
| author | 2014-01-25 14:06:34 +0100 | |
|---|---|---|
| committer | 2014-01-25 14:06:34 +0100 | |
| commit | 2a6443a0f0f52272e1e3269d0c32f56322a9a3ec (patch) | |
| tree | eefeb8a1a3c6ab32426945b7edbb5e220979a02f /app/views/helpers/view/normal_view.phtml | |
| parent | a7aa82b461ec2b35883ce4fb34e29e2b77717145 (diff) | |
Demande rafraîchissement page quand nvx articles
Ajout d'une indication pour rafraîchir la page si de nouveaux articles
ont été détectés via le serveur
Voir #379
Diffstat (limited to 'app/views/helpers/view/normal_view.phtml')
| -rw-r--r-- | app/views/helpers/view/normal_view.phtml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml index a1df87579..af5ff03fe 100644 --- a/app/views/helpers/view/normal_view.phtml +++ b/app/views/helpers/view/normal_view.phtml @@ -63,6 +63,13 @@ if (!empty($this->entries)) { $display_others = false; } + if ($this->entries[0]->id () === $item->id ()) { + ?><div id="new-article"> + <a href="<?php echo _url(); ?>"><?php + echo Minz_Translate::t ('new_article'); + ?></a></div><?php + } + ?><div class="flux<?php echo !$item->isRead () ? ' not_read' : ''; ?><?php echo $item->isFavorite () ? ' favorite' : ''; ?>" id="flux_<?php echo $item->id (); ?>"> <ul class="horizontal-list flux_header"><?php if ($this->loginOk) { |
