aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/routes
AgeCommit message (Collapse)Author
2018-05-28Refs #6433 Use ransackable scope for stop area status filtercedricnjanga
2018-04-30Refs #6860 Change StopPoint show link to stop_area_referential_stop_area_pathcedricnjanga
2018-04-24Refs #6431 Add small changes on stop area & line status display to have the ↵cedricnjanga
same logic
2018-04-04Refs #6370 Add some more translationscedricnjanga
2018-03-29Refs #6156 Update route translationscedricnjanga
2018-03-15Rename `RouteWayCostJSONSerializer` to `RouteWayCostUnitConverter`Teddy Wing
Because we need to pass a Ruby hash to Rabl instead of a JSON string, get rid of our serialiser and instead turn it into a function that just converts the distance & time units. Fix a bug in the test that had the `'1-2'` key as a symbol instead of a string which was caused by a copy-paste from JSON and not being thorough enough in search-and-replace. Refs #6203
2018-03-15Add `RouteWayCostJSONSerializer`Teddy Wing
This serialiser will take `Route#costs` and convert the distance and time fields from meters to kilometres and seconds to minutes respectively. We need this because the frontend uses kilometre and minute units while the TomTom API gives us the others (and we store the data we get from TomTom without treatment). Unfortunately, due to the way that Rabl works, this doesn't quite work just yet. The serializer returns a string, and Rabl just puts this string into the JSON output instead of a real JSON hash. Looks like I'm going to have to convert my serializer into a generic converter. Refs #6203
2018-03-15Routes: Add `/costs` routeTeddy Wing
Render the `costs` field of a `Chouette::Route` as JSON. This lives at: http://stif-boiv.dev:3000/referentials/4/lines/1857/routes/7/costs.json I want this in order to get the distance & time costs of a route so that I can merge them with `JourneyPattern#costs` on the frontend on `JourneyPatternsCollection#show`. Refs #6203
2018-02-09Refs #4126 @6h; Add i18n to JSZog
2018-01-25StopPointDecorator: Convert to new action links interfaceTeddy Wing
Subtleties were that the links need to reference `StopArea`s. In particular, the `edit` link goes to the `StopAreaReferential` path instead of the referential-StopArea path. Refs #5586
2018-01-25RouteDecorator: Convert to new action links interfaceTeddy Wing
Important to add the `action: :index` argument on the table builder in the `ReferentialLines#show` page so that the gear menu links render correctly. Refs #5586
2018-01-04Display checksum for routesXinhui
Refs #5460
2017-12-26Add draft icon in routes#show table. Refs #54185382-all-stop-types-in-routesAlban Peignier
2017-11-28Refactoring pageheaderXinhui
2017-11-27Merge branch 'master' of github.com:af83/stif-boivcedricnjanga
2017-11-26Use t('id_codif') and t('id_reflex') to prevent hardcoded strings. Refs #5081Alban Peignier
2017-11-21Change the way we name classescedricnjanga
We now always use modules for namespaces => same structure for models, decorators, policies...
2017-10-20Breadcrumb for journey_patternsXinhui
2017-10-20Breadcrumb for routesXinhui
2017-10-13Merge pull request #88 from af83/4698-table_pages_title_refactoringLuc Donnet
Refactoring tables titles for routes
2017-10-11fix locales structuration Refs #4698Guillaume
2017-10-09Refactoring tables titles for routesGuillaume
2017-10-06Add webpacker gem and migrate the React appscedricnjanga
2017-09-28add helper for line_status with pictoGuillaume
2017-09-26Refs #4614cedricnjanga
Add trad to React itineraries
2017-09-14Change wayback values in route Refs #3395 @4Luc Donnet
2017-09-13Apply object id changes to viewscedricnjanga
2017-09-01table_builder_2: Use `Column#link_to` in all table builder callsTeddy Wing
Rewrite table builder calls to work with the new `TableBuilderHelper::Column#link_to` mechanism for defining the linked column and what it points to. This takes the link out of the `TableBuilderHelper`, and puts it into the hands of the view. It gives us more flexibility with regards to what can be defined as a link in our tables and what those links point to. This will be used in a more meaningful way in the `imports#show` page to list `NetexImport`s and provide links to both the referential associated with a Netex import and the imported file status page from a table row.
2017-08-30Updating project-specific iconfont for page headers (in views)jpl
2017-07-31Refs #4187: updating routes#show tablejpl
2017-07-12Routes#show: Use new table builder helperTeddy Wing
Update the table builder helper for the table of `Chouette::StopPoints` on this page. Created a new `StopPointDecorator` which unfortunately has the same code as `StopAreaDecorator`, the only difference being that instead of using `object`, it uses `object.stop_area`. Need to work out how to eliminate that code duplication. Refs #3479
2017-07-04Refs #3961: updating wordingjpl
2017-06-19Routes#show: Use RouteDecorator#action_links to render header linksTeddy Wing
Instead of defining the header links in the view, get them from our decorator so we can reuse them. Need to wrap `@route` in the decorator in the controller and pass it the necessary context in order for it to be able to properly build links. Move `Chouette::RouteDecorator` to the top level app/decorators/ directory and remove it from the `Chouette` namespace. I had put it there to make it more similar to our model directory layout, but Draper isn't intelligent enough to look in subdirectories of `decorators` when using the `ActiveRecord::Base#decorate` method. Otherwise I suppose I could do `Chouette::RouteDecorator.decorate(@route)`, but that seemed not as clean since it doesn't take advantage of the default behaviour of Draper. Now going to have to do this for the other decorators. Refs #3479
2017-06-16Refs #3789: changing select input by select2 onejpl
2017-05-31Refs #3627: Farewell turbolinksThomas Haddad
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
2017-05-31Refs #3611: updating validations and requirements on routes#newjpl
2017-05-18Refs: #3144; calendar, line_footnotes and routes speced (spec/features)Robert
2017-05-16Refs #3410: Remove jp link if no stoppointjpl
2017-05-16Refs #3377: updating maps layout on routes#showjpl
2017-05-16Refs #3377: Add openlayers map in routes#showThomas Haddad
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
2017-05-11Disable turbolinks for reactux rendered viewsThomas Haddad
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com> Signed-off-by: Jean Pual Lescouzères <jpl-laboulette@af83.com>
2017-05-10Refs #3311: Disable turbolinks in header link to vehicle journeysThomas Haddad
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
2017-04-28Refs #3127 : Fix wording on route pageVlatka Pavisic
2017-04-21Refs #3161: removing area_type column on routes#show tablejpl
2017-03-30Fix route form opposite_route option should be based on wayback selectionXinhui
Refs #2839
2017-03-27Fix testjpl
2017-03-27Refs #2953: fix html entities on javascriptjpl
2017-03-21Refs #2747: adding user sync time on profile paneljpl
2017-03-17Refs #2859: fix wording issuesjpl
2017-03-17Fix i18n issuesjpl