diff options
| author | 2013-11-08 20:32:35 +0100 | |
|---|---|---|
| committer | 2013-11-08 20:32:35 +0100 | |
| commit | 1b9f16771c9feaf44c088f58f598fcc08b7bbea8 (patch) | |
| tree | 5925f392825424ccd1d9e0c97b8f4e7cb262c5ec /app | |
| parent | 2dc26c215741e0e7a103b570cbb20fa60ed21d9d (diff) | |
Fix issue #208: chargement dynamique des jours
Les indications de jours (aujourd'hui, hier, à partir d'avant-hier) sont
maintenant chargés dynamiquement
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/helpers/view/normal_view.phtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml index 2f6748263..ad6154163 100644 --- a/app/views/helpers/view/normal_view.phtml +++ b/app/views/helpers/view/normal_view.phtml @@ -16,21 +16,21 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { <?php foreach ($items as $item) { ?> <?php if ($display_today && $item->isDay (Days::TODAY)) { ?> - <div class="day"> + <div class="day" id="day_today"> <?php echo Translate::t ('today'); ?> <span class="date"> - <?php echo timestamptodate (time (), false); ?></span> <span class="name"><?php echo $this->currentName; ?></span> </div> <?php $display_today = false; } ?> <?php if ($display_yesterday && $item->isDay (Days::YESTERDAY)) { ?> - <div class="day"> + <div class="day" id="day_yesterday"> <?php echo Translate::t ('yesterday'); ?> <span class="date"> - <?php echo timestamptodate (time () - 86400, false); ?></span> <span class="name"><?php echo $this->currentName; ?></span> </div> <?php $display_yesterday = false; } ?> <?php if ($display_others && $item->isDay (Days::BEFORE_YESTERDAY)) { ?> - <div class="day"> + <div class="day" id="day_before_yesterday"> <?php echo Translate::t ('before_yesterday'); ?> <span class="name"><?php echo $this->currentName; ?></span> </div> |
