aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referential_lines_controller.rb
AgeCommit message (Collapse)Author
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
2017-11-28Refactoring move referentialSupport from chouetteController into childrensXinhui
2017-10-20Breadcrumb for referential_lines - routing_constraint_zonesXinhui
2017-09-13Apply object id changes to viewscedricnjanga
2017-07-12ReferentialLines#show: Render links from ReferentialLineDecoratorTeddy Wing
Leverage our newly created `ReferentialLineDecorator` to render the header links, allowing us to use them both here and in the table of lines on the Referentials#show page. Used the extended decoration syntax to allow us to specify the `ReferentialLineDecorator`, otherwise Draper will infer `LineDecorator`, which is not what we want in this case. Refs #3479
2017-07-12Remove ReferentialLines#indexTeddy Wing
Delete this route and associated template files. Wasn't sure if using `exclude:` in the routes file was the best way to do this, as I'm not sure if there are other routes we want to exclude from here also. I visited the page because I'm migrating templates to the new table builder helper and this one uses table builder. Upon visiting the page, it looked pretty wonky, and after consulting with Jean-Paul and Luc, it turns out this page isn't used any more because the table of `Chouette::Line`s rendered there is now instead displayed on the Referentials#show page, obviating the need for this page. Refs #3479
2017-07-07ReferentialLines#show: Use new table builder helperTeddy Wing
Convert the table of `Route`s on this page to use the new table builder helper. This gives us the links from the `RouteDecorator` in the gear menu next to each row in the table. Ended up removing the `route_sp` field from the `RouteDecorator` context because it seems like we can just grab that collection directly from the `Route` object. At first I thought about renaming it because after coming back to this code I thought, 'what does sp mean?'. Then after some investigation, it appears that we don't need to pass it in explicitly. Now, no need to bother with that from the ReferentialLines controller. The RoutesController does create a separate `@route_sp` variable, but this only changes the sort order of the stop points, not the contents of the collection. Thus it seems safe to get them directly from the Route in the decorator. Refs #3479
2017-03-17Refs #2858: fix sorting on table for <attr>.count (reflines#show)jpl
2017-02-20Refs #2597: updating ref_lines#show with routes search formjpl
2017-02-13Refs #2596 : Replace creation_time with timestampsVlatka Pavisic
2017-02-13Refs #2597: updatings line_referentials#show, according to new ADjpl
2017-02-07Refs #2476 : Disable modification and deletion of resources from another ↵Vlatka Pavisic
referential; in progress
2016-12-02Refs #2015: adding sortable columns for ref_*jpl
2016-11-30Refs #2015: adding sortable columns on table builder, actually for ref_linesjpl
2016-11-28Hide details on line group of lines when no group of line is defined (in ↵Alban Peignier
ReferentialLinesController) Refs #2087
2016-11-28Remove footnote from permited paramsXinhui
2016-11-28LineFootnotesControllerXinhui
Refs #2036
2016-11-20Sort line routes in ReferentialLinesController#showAlban Peignier
2016-11-18Refs #1974 : Refactor Line transport modevlatka pavisic
2016-11-18Refs #1977: Add transport_submode enum. on lines#showjpl
2016-11-17Refs #1939 : Create Line by_text scopevlatka pavisic
2016-11-17Refs #1937 : Lines filtering by transport modevlatka pavisic
2016-11-15Refs #1886: adding rails-select2 for lines searching autocompletejpl
2016-09-10Define Line#line_referential when built into ReferentialLinesController. ↵Alban Peignier
Refs #841
2016-05-15Associate LineReferential to Referential. Create ReferentialLines to manage ↵Alban Peignier
lines in Referential. Refs #826