aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/view/normal_view.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-01-25 14:06:34 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-01-25 14:06:34 +0100
commit2a6443a0f0f52272e1e3269d0c32f56322a9a3ec (patch)
treeeefeb8a1a3c6ab32426945b7edbb5e220979a02f /app/views/helpers/view/normal_view.phtml
parenta7aa82b461ec2b35883ce4fb34e29e2b77717145 (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.phtml7
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) {