Commit Graph

146 Commits

Author SHA1 Message Date
Frédéric Péters 8c75b8885b ignore pages with layer name as slug anchored as root 2021-06-06 17:21:08 +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 ce7092ff68 trivial: don't include max tiles stats for sites without any tiles 2021-01-22 09:44:21 +01:00
Frédéric Péters 2d00832fc2 trivial: apply black 2021-01-11 21:31:40 +01:00
Frédéric Péters 1b523bc8c0 commands: use unsafe templating for place page titles 2020-12-22 14:29:11 +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 5bf278e014 detect and skip erroneous layers (#48949) 2020-11-28 09:49:48 +01:00
Frédéric Péters d9762e6683 don't create pages with empty titles 2020-11-24 17:57:22 +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 1e300df3d8 declare tiles to be used as pages in tile settings
This makes it possible to add new place pages without editing gnm_create_places.
2020-11-20 07:59:21 +01:00
Frédéric Péters 57730993c0 trivial: remove unused import 2020-11-17 15:31:27 +01:00
Frédéric Péters acb41794fe declare "urgences sanitaires" pages/tiles (#48496) 2020-11-17 15:29:30 +01:00
Frédéric Péters ebb6379ef2 commands: get all properties when creating place pages 2020-11-17 15:28:09 +01:00
Frédéric Péters 5a6a0f792a adapt reporting command to new custom view URLs (#43164) 2020-05-20 17:49:05 +02: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 cec2486187 iterate over features, as get_geojson return value changed 2020-04-17 16:06:49 +02:00
Frédéric Péters 7b6a867e11 update to new get_geojson signature 2020-04-17 13:27:03 +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 65c34ff2c2 add management command to produce reporting files (#35844) 2020-03-25 14:21:45 +01: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 3671def61e add custom url to unsubscribe from cartads dossier (#36941) 2019-10-16 10:56:12 +02:00