Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C chouette-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • chouette-core
  • Merge requests
  • !22

Merged
Created Jun 15, 2017 by Administrator@rootMaintainer

3479 refactor table builder helper

  • Overview 0
  • Commits 132
  • Changes 41

Created by: teddywing

Refactor the table_builder helper (in NewapplicationHelper).

This doesn't touch the existing table_builder method. It provides a new table_builder_2 helper that can be used to do a slow migration to the new helper. After migrating, it will have to be renamed to table_builder.

table_builder_2 is based on table_builder but changes a number of things in light of the following requirements:

  • Allow column-level activation & deactivation of sorting
  • Take the links from the header of the show page of the objects in the table. Display those links in the row's gear menu

The links are now abstracted into decorators on each object. This enables us to define the links in one place, and render them all in both the header and gear menu.

Header link updates

Pages to test:

Page URL
Referentials#show /referentials/:id
Lines#show /line_referentials/:id/lines/:id
TimeTables#show /referentials/:id/time_tables/:id
Routes#show /referentials/:id/lines/:id/routes/:id
RoutingConstraintZones#show /referentials/:id/lines/:id/routing_constraint_zones
Calendars#show /calendars/:id
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: 3479-refactor-table_builder-helper