Commit Graph

69 Commits

Author SHA1 Message Date
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
Frédéric Péters 8de4e28566 hide villeurbanne from pilote collectivities (#27436) 2018-10-21 13:02:36 +02:00
Frédéric Péters 26f3687afd consider schedule without validity dates to be valid for current time (#18948) 2018-10-10 19:12:43 +02:00
Frédéric Péters 3721a4f2c7 create and save autotiles from air quality dynamic paage (#26982) 2018-10-04 15:38:21 +02:00
Frédéric Péters e83aba4a50 silently skip invalid schedule data (#26912) 2018-10-02 14:04:32 +02:00
Frédéric Péters 12f7955ba0 add custom handling for Lyon sectors as collectivity labels (#26774) 2018-10-02 10:27:28 +02:00
Frédéric Péters 44815f339f also look for producer in collectivity labels (#26774) 2018-10-02 10:27:24 +02:00
Frédéric Péters c6866209a4 move producers and collectivities to settings (#26774) 2018-10-02 10:27:24 +02:00
Frédéric Péters 3cb9c801e0 don't return schedule array when it's all closed 2018-10-01 19:00:17 +02:00
Frédéric Péters 2a48ad2a6a add custom template tag to get ordered air quality indices 2018-09-25 20:47:18 +02:00
Frédéric Péters 49e1497698 template tags: add list of collectivity slugs (#26692) 2018-09-25 09:12:09 +02:00
Frédéric Péters 38625f6a65 create dedicated tile for goto page (if required) 2018-09-16 17:06:36 +02:00
Frédéric Péters 284b4006be extend as_commune to work with a page slug (#23897)
(this will be used to get portal url from a collectivity page)
2018-09-14 14:24:59 +02:00
Frédéric Péters 2c19958dc6 fix blacklisting SAU as a collectivity 2018-09-14 14:08:21 +02:00
Frédéric Péters 4fd7e8d11f template tag: fix as_producer to consider slug 2018-09-11 19:43:15 +02:00
Frédéric Péters aaab4ddc16 template tags: don't support getting producer from label anymore
(this was required when we only got labels and zero details from
data.grandlyon (see #19294))
2018-09-11 19:37:16 +02:00
Frédéric Péters c91838af5c use "toodego" as default producer 2018-09-11 19:20:01 +02:00
Frédéric Péters 2d63f1b1db allow dashes in producer classes (for vaulx-en-velin) 2018-09-11 19:15:45 +02:00
Frédéric Péters b7ae68834a settings: define label for rnsa producer (#26095) 2018-09-10 14:46:38 +02:00
Elias Showk 768b713d62 refactor and correct geojson parsing in time-table template tags (#25582) 2018-08-17 16:58:55 +02:00
Elias Showk de2cfa6fbd correct get_mairie_opening_hours closed afternoon display (#25582) 2018-08-17 16:58:55 +02:00
Elias Showk 72408821ff misc: rename variables in template tags (#25582) 2018-08-17 16:58:55 +02:00
Frédéric Péters d67b19fa65 add json_script template tag (from django 2.1) 2018-08-15 21:54:28 +02:00
Frédéric Péters a33e0b17c8 keep context when rendering air quality map 2018-08-15 21:53:44 +02:00
Frédéric Péters 5db2ed8ea9 start new air quality pages and tiles (#22323) 2018-08-15 10:28:03 +02:00
Frédéric Péters aa46104930 add template tag to compute tile picture size 2018-07-02 22:44:38 +02:00
Frédéric Péters 5a2ea72886 add new templatetag to display a map centered on a place 2018-06-22 13:21:36 +02:00
Frédéric Péters bc49366139 add templatetag to get place page 2018-06-15 11:08:54 +02:00
Elias Showk fb6e29d9cd add opening hours tile for mairies (#22469) 2018-05-11 13:01:28 +02:00
Frédéric Péters dac00c54ed make it possible to compute producer from form dict (#22543) 2018-04-19 11:34:26 +02:00
Frédéric Péters 266ede325f fix some collectivity names (#19294) 2018-04-03 10:27:10 +02:00
Frédéric Péters b99589ad79 python3: adapt to .keys() and .values() changes 2018-03-31 20:18:28 +02:00
Frédéric Péters 3804b048c9 python3: use quote() from django.http module 2018-03-31 20:15:07 +02:00
Frédéric Péters 880bf40f82 add back DashboardCell import 2018-03-18 11:32:09 +01:00
Frédéric Péters cad1af4701 declare all collectivity names 2018-03-16 17:09:14 +01:00
Frédéric Péters 2872cf9081 readjust slug to producer code to work with formdata (#22542) 2018-03-15 17:44:48 +01:00
Frédéric Péters 97aca8279b templatetags: fix mdr support for timezone aware elements (#22050) 2018-03-10 17:28:31 +01:00
Frédéric Péters 0e62a5de05 templatetags: let mdr be served as geojson (#22050) 2018-03-10 17:28:29 +01:00
Frédéric Péters 7873a12535 templatetags: add support for openinghoursspecification-only entries (#22050) 2018-03-10 17:16:54 +01:00
Elias Showk 622f15044a mairie template support as_opening_hours template tag (#22050) 2018-03-10 16:37:46 +01:00
Frédéric Péters 1c591b3587 let as_producer template tag accept a label as input (#19294) 2018-03-09 18:06:54 +01:00
Frédéric Péters 610cc3da0b adjust suggestion algorithm to get better results (#20573) 2018-02-14 16:22:31 +01:00
Frédéric Péters 22440cbe93 hardcode commune slugs for now
(it's not that easy to get all of them correctly from hobo declarations)
2018-01-30 18:58:44 +01:00
Frédéric Péters 3929485c37 let provider fallback if there's no gnm_commune 2018-01-11 12:36:24 +01:00
Frédéric Péters 63cc27b895 automatically use collectivity as producer 2018-01-11 12:28:58 +01:00
Frédéric Péters 23ee901314 extend producer discovery to work with css classes 2018-01-06 11:04:40 +01:00