Development #39906
affichage des temps d'exception
Début:
14 février 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Les heures d'ouverture qui sont en fait fermées, les afficher mais avec un fond différent (genre rouge, cf capture). Idéalement taper le libellé de l'exception dedans.
Fichiers
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
- Sujet changé de affichage des temps d'exceptio n à affichage des temps d'exception
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-manager-display-exceptions-in-day-month-views-39906.patch 0001-manager-display-exceptions-in-day-month-views-39906.patch ajouté
- Fichier excep.png excep.png ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Voilà avec la capture du rendu réel, rouge très léger.
Mis à jour par Valentin Deniaud il y a environ 4 ans
Erreur ici
exception.css_height = int(100 * (end_min - current_date).seconds // 3600)
C'est start_max pas current_date. Le test passe par chance, mais quand bien même la hauteur calculée et celle dans le assert auraient été différentes, il serait passé quand même parce que 800% c'est aussi la hauteur des
opening-hours
. Moralité tu pourrais faire du pyquery qu'on soit sûr qu'on regarde un exception-hours
.Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-manager-display-exceptions-in-day-month-views-39906.patch 0001-manager-display-exceptions-in-day-month-views-39906.patch ajouté
Voilà, avec pyquery.
Mis à jour par Valentin Deniaud il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit f6bb6282ac5a817ec8c8a883f3cf1ccd5bbe58e2 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Sun Feb 16 17:05:52 2020 +0100 manager: display exceptions in day/month views (#39906)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
manager: display exceptions in day/month views (#39906)