Commit Graph

114 Commits

Author SHA1 Message Date
Frédéric Péters 417097b315 templatetags: remove duplicate json_script tag 2022-05-31 10:53:28 +02:00
Frédéric Péters ec7b596ce4 misc: remove usage of django.utils.six (#63683) 2022-04-17 10:44:07 +02:00
Frédéric Péters f1be8e26f3 always look for collectivity using its slug, not its label (#55446)
(because "Caluire-et-Cuire" vs "Caluire et Cuire")
2021-07-12 09:47:27 +02:00
Frédéric Péters 0c9237f8c9 misc: use user.is_authenticated as a property, for django 2.2 compat 2021-04-13 15:25:47 +02:00
Frédéric Péters 99f47e5ef6 add |form_asset_url filter to form asset url from commune sites (#51632) 2021-03-16 09:56:35 +01:00
Nicolas Roche 7764be274a templatetags: manage exceptions on opening hours (#50419) 2021-01-23 16:48:57 +01:00
Nicolas Roche c0d31ce0c7 templatetags: ease undestanding openinghoursspecification is used as default (#50419) 2021-01-22 10:09:55 +01:00
Nicolas Roche 116511fc31 templatetags: factorize formats parser for badges and opening hours (#50419) 2021-01-22 10:09:55 +01:00
Nicolas Roche 8e99bea02f templatetags: use openinghoursspecification as default format (#50404) 2021-01-22 10:05:58 +01:00
Nicolas Roche 045a98a06c templatetags: remove redondant code (#50404) 2021-01-22 09:58:49 +01:00
Frédéric Péters 2d00832fc2 trivial: apply black 2021-01-11 21:31:40 +01:00
Frédéric Péters aa72687db8 add templatetag to get list of known tiles (#49643) 2020-12-21 11:41:12 +01:00
Nicolas Roche d9f2edd994 templatetags: manage 24h/24 slots (#48929) 2020-12-11 16:08:05 +01:00
Nicolas Roche 3721cc8faa templatetags: allow 24:00 input hour (#48929) 2020-12-11 16:07:55 +01:00
Nicolas Roche fac5f0587e templatetags: simplify start/end date computation on mdr_format (#48919) 2020-12-06 00:23:59 +01:00
Nicolas Roche 226207a916 templatetags: add 'r' prefix to regex strings (#48919) 2020-12-06 00:23:59 +01:00
Nicolas Roche 1ece478eb9 templatetags: remove unused imports (#48919) 2020-12-06 00:23:59 +01:00
Nicolas Roche d6507267c1 templatetags: simplify start/end date computation on openinghoursspecification (#48919) 2020-12-06 00:23:59 +01:00
Nicolas Roche 926248ebf9 templatetags: move independant code on top of module (#48919) 2020-12-06 00:23:57 +01:00
Nicolas Roche 33e59ba5ee templatetags: simplify start/end date computation on opening_hours (#48919) 2020-12-05 22:32:16 +01:00
Nicolas Roche e9f57108f8 templatetags: use a generic day parameter in openinghours_to_datetime (#48919) 2020-12-05 22:31:28 +01:00
Nicolas Roche 854d3e73a1 templatetags: replace dateutil.parser by a explicit computation (#48919) 2020-12-05 22:29:39 +01:00
Nicolas Roche ff52f172e8 templatetags: deduce period and all_day_hours directely from data (#48919) 2020-12-05 22:26:37 +01:00
Nicolas Roche d75a455f4d templatetags: simplify get_period_from_data (#48919) 2020-12-05 21:49:41 +01:00
Nicolas Roche 3e8fd2843d templatetags: get badges from night hours (#48919) 2020-12-05 12:48:54 +01:00
Nicolas Roche 4570380949 templatetags: get opening hours ending after midnight (#48919) 2020-12-02 10:12:03 +01:00
Nicolas Roche 560af3110e templatetags: get opening hours directly from specifications (#48919) 2020-12-02 10:12:03 +01:00
Nicolas Roche 3b2d0c9b01 templatetags: correct timezone on openinghour specification (#48919) 2020-12-02 10:12:01 +01:00
Frédéric Péters 7f60bd72e8 ignore invalid dayOfWeek in opening hours specs (#48792) 2020-11-24 14:05:05 +01:00
Frédéric Péters 274e139cbe ignore invalid opening hours entries (#48702) 2020-11-20 10:18:45 +01:00
Frédéric Péters a8725ab961 fix suggestion of arrondissement mairie 2020-05-15 12:33:02 +02:00
Frédéric Péters c24baefb06 get arrondissement mairie in case of lyon city (#42813) 2020-05-13 15:12:08 +02:00
Frédéric Péters 6659113395 misc: display known format but no opening hours as all closed (#40054) 2020-04-15 17:08:42 +02:00
Frédéric Péters 6aaf492877 misc: replace assignment tags by simple tags 2020-04-07 17:57:34 +02:00
Frédéric Péters 9163380584 don't crash on invalid cell parameter passed to goto cell 2020-03-05 11:24:33 +01:00
Frédéric Péters 545ad896e2 create tz-aware datetimes when all we have is dates 2020-02-26 19:47:21 +01:00
Frédéric Péters 07e6d28cfc handle simple dates in openinghours validity (#40054) 2020-02-26 10:40:19 +01:00
Frédéric Péters 12d01e3740 suggestions: don't crash when geocoding fails 2019-10-27 19:03:12 +01:00
Frédéric Péters c54dcae9ed templatetags: get timezoned now() instead of converting it afterwards (#37235) 2019-10-27 17:18:39 +01:00
Frédéric Péters fbe8e350c8 python3: update from basestring to six.string_types 2019-10-14 20:31:50 +02:00
Frédéric Péters 92406b60d4 python3: force list of collectivity slugs to list type 2019-10-14 20:26:33 +02:00
Frédéric Péters 0f5fc1ca08 misc: workaround empty opens/closes attributes (#35420) 2019-08-17 09:03:58 +02:00
Frédéric Péters a707b8a80e misc: fix default airquality geolocation 2019-06-05 16:05:05 +02:00
Frédéric Péters 1f81955eb1 don't use a real tile for "Au quotidien" title 2019-06-02 08:40:41 +02:00
Frédéric Péters 8d97d2d908 compute initial content for dashboard (#32064) 2019-05-26 11:03:29 +02:00
Frédéric Péters db8e7a1c48 fix typo in variable name 2019-05-20 06:32:00 +02:00
Frédéric Péters 41ba380dc4 update references to COLLECTIVITY_UNACCENT_LABELS 2019-05-19 21:30:32 +02:00
Frédéric Péters 9ec9e17c07 also look for collectivity logo without accent (#32928) 2019-05-09 11:25:09 +02:00
Frédéric Péters 387f404c28 get related collectivity from form digest (#22543) 2019-02-25 14:50:21 +01:00
Frédéric Péters cc3b6c5bcb add explicit support for fallback producer (#28464) 2018-11-29 16:25:29 +01:00