diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/api_keys/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/calendars/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/companies/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/imports/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/lines/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/networks/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/referential_companies/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/referential_lines/show.html.slim | 5 | ||||
| -rw-r--r-- | app/views/referential_networks/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/referentials/show.html.slim | 5 | ||||
| -rw-r--r-- | app/views/routes/show.html.slim | 5 | ||||
| -rw-r--r-- | app/views/routing_constraint_zones/index.html.slim | 9 | ||||
| -rw-r--r-- | app/views/routing_constraint_zones/show.html.slim | 5 | ||||
| -rw-r--r-- | app/views/stop_areas/index.html.slim | 8 | ||||
| -rw-r--r-- | app/views/time_tables/index.html.slim | 5 |
15 files changed, 67 insertions, 15 deletions
diff --git a/app/views/api_keys/index.html.slim b/app/views/api_keys/index.html.slim index fc8d95c7a..9757b8955 100644 --- a/app/views/api_keys/index.html.slim +++ b/app/views/api_keys/index.html.slim @@ -12,7 +12,10 @@ [ \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |api_key| \ + organisation_api_key_path(api_key) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :token, \ diff --git a/app/views/calendars/index.html.slim b/app/views/calendars/index.html.slim index 757ade89b..1e38786b9 100644 --- a/app/views/calendars/index.html.slim +++ b/app/views/calendars/index.html.slim @@ -21,7 +21,10 @@ [ \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |calendar| \ + calendar_path(calendar) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :short_name, \ diff --git a/app/views/companies/index.html.slim b/app/views/companies/index.html.slim index 90d5e8c96..dad905c60 100644 --- a/app/views/companies/index.html.slim +++ b/app/views/companies/index.html.slim @@ -31,7 +31,10 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |company| \ + line_referential_company_path(current_referential, company) \ + end \ ) \ ], links: [:show, :edit], diff --git a/app/views/imports/index.html.slim b/app/views/imports/index.html.slim index 98a0f0108..6f76414a6 100644 --- a/app/views/imports/index.html.slim +++ b/app/views/imports/index.html.slim @@ -28,7 +28,10 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |import| \ + workbench_import_path(@workbench, import) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :creator, \ diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim index e4a29b182..dda5afd44 100644 --- a/app/views/lines/index.html.slim +++ b/app/views/lines/index.html.slim @@ -29,7 +29,10 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |line| \ + line_referential_line_path(@line_referential, line) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :deactivated, \ diff --git a/app/views/networks/index.html.slim b/app/views/networks/index.html.slim index bd1f3d15a..235bdebda 100644 --- a/app/views/networks/index.html.slim +++ b/app/views/networks/index.html.slim @@ -31,7 +31,10 @@ ), TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |network| \ + line_referential_network_path(@line_referential, network) \ + end \ ), \ ], links: [:show], diff --git a/app/views/referential_companies/index.html.slim b/app/views/referential_companies/index.html.slim index 1946bbab5..e5b7ce24a 100644 --- a/app/views/referential_companies/index.html.slim +++ b/app/views/referential_companies/index.html.slim @@ -31,7 +31,10 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |company| \ + referential_company_path(@referential, company) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :phone, \ diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim index f20b59d3e..cbce7a7d5 100644 --- a/app/views/referential_lines/show.html.slim +++ b/app/views/referential_lines/show.html.slim @@ -51,7 +51,10 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |route| \ + referential_line_route_path(@referential, @line, route) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :published_name, \ diff --git a/app/views/referential_networks/index.html.slim b/app/views/referential_networks/index.html.slim index 747143c94..ca67eca8b 100644 --- a/app/views/referential_networks/index.html.slim +++ b/app/views/referential_networks/index.html.slim @@ -31,7 +31,10 @@ ), TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |network| \ + referential_network_path(@referential, network) \ + end \ ) \ ], links: [:show], diff --git a/app/views/referentials/show.html.slim b/app/views/referentials/show.html.slim index 5229c3d7d..e1d89cba4 100644 --- a/app/views/referentials/show.html.slim +++ b/app/views/referentials/show.html.slim @@ -51,7 +51,10 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |line| \ + referential_line_path(@referential, line) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :deactivated, \ diff --git a/app/views/routes/show.html.slim b/app/views/routes/show.html.slim index 1e3fac723..a21b5ec8a 100644 --- a/app/views/routes/show.html.slim +++ b/app/views/routes/show.html.slim @@ -41,7 +41,10 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: Proc.new {|s| s.try(:stop_area).try(:name)} \ + attribute: Proc.new {|s| s.try(:stop_area).try(:name)}, \ + link_to: lambda do |stop_point| \ + referential_stop_area_path(@referential, stop_point.stop_area) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :deleted_at, \ diff --git a/app/views/routing_constraint_zones/index.html.slim b/app/views/routing_constraint_zones/index.html.slim index d7e15a2da..4e2534b6a 100644 --- a/app/views/routing_constraint_zones/index.html.slim +++ b/app/views/routing_constraint_zones/index.html.slim @@ -25,7 +25,14 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |routing_constraint_zone| \ + referential_line_routing_constraint_zone_path( \ + @referential, \ + @line, \ + routing_constraint_zone \ + ) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :stop_points_count, \ diff --git a/app/views/routing_constraint_zones/show.html.slim b/app/views/routing_constraint_zones/show.html.slim index b5aa199c6..dbd8464a0 100644 --- a/app/views/routing_constraint_zones/show.html.slim +++ b/app/views/routing_constraint_zones/show.html.slim @@ -30,7 +30,10 @@ [ \ TableBuilderHelper::Column.new( \ name: "Arrêts de l'itinéraire", \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |stop_point| \ + referential_stop_area_path(@referential, stop_point.stop_area) \ + end \ ), TableBuilderHelper::Column.new( \ name: "Arrêts inclus dans l'ITL", \ diff --git a/app/views/stop_areas/index.html.slim b/app/views/stop_areas/index.html.slim index 795c773ec..4c95761d2 100644 --- a/app/views/stop_areas/index.html.slim +++ b/app/views/stop_areas/index.html.slim @@ -25,7 +25,13 @@ ), \ TableBuilderHelper::Column.new( \ key: :name, \ - attribute: 'name' \ + attribute: 'name', \ + link_to: lambda do |stop_area| \ + referential_stop_area_path( \ + @stop_area_referential, \ + stop_area \ + ) \ + end \ ), \ TableBuilderHelper::Column.new( \ key: :registration_number, \ diff --git a/app/views/time_tables/index.html.slim b/app/views/time_tables/index.html.slim index 05be460d4..1ea5256aa 100644 --- a/app/views/time_tables/index.html.slim +++ b/app/views/time_tables/index.html.slim @@ -27,7 +27,10 @@ ), \ TableBuilderHelper::Column.new( \ key: :comment, \ - attribute: 'comment' \ + attribute: 'comment', \ + link_to: lambda do |time_table| \ + referential_time_table_path(@referential, time_table) \ + end \ ), \ TableBuilderHelper::Column.new( \ name: "Période englobante", \ |
