diff options
| author | Teddy Wing | 2017-06-08 11:03:20 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-08 11:03:20 +0200 |
| commit | 212d1f740b17ae89b69603a3f1964351a38b86f6 (patch) | |
| tree | ecd87decb53bb78c777c9ead2cfa9186aaffc971 | |
| parent | 073ac0eb3330787532f551d20abe4600a0615446 (diff) | |
| download | chouette-core-212d1f740b17ae89b69603a3f1964351a38b86f6.tar.bz2 | |
Add a few TODOs related to the table builder work
Just a few notes to myself for things to work on in this story.
Refs #3479
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 3 | ||||
| -rw-r--r-- | app/views/referential_lines/show.html.slim | 1 | ||||
| -rw-r--r-- | spec/factories/chouette_2_factories.rb | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index 8198e0efb..27b9cb0a4 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -59,6 +59,9 @@ module NewapplicationHelper lnk = [] # #is_a? ? ; or ? + # TODO: Ask Jean-Paul: on which pages do we create multiple links? + # Do we actually create multiple links with this code? + # Answer: this is a polymorphic URL unless item.class == Calendar or item.class == Referential if current_referential lnk << current_referential diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim index db99381d3..5fb1bb125 100644 --- a/app/views/referential_lines/show.html.slim +++ b/app/views/referential_lines/show.html.slim @@ -7,6 +7,7 @@ / Below is secundary actions & optional contents .row .col-lg-12.text-right.mb-sm + / TODO: Make a list of Link objects that can be rendered with link_tos here and in the gear menu = link_to @line.human_attribute_name(:footnotes), referential_line_footnotes_path(@referential, @line), class: 'btn btn-primary' = link_to t('routing_constraint_zones.index.title'), referential_line_routing_constraint_zones_path(@referential, @line), class: 'btn btn-primary' diff --git a/spec/factories/chouette_2_factories.rb b/spec/factories/chouette_2_factories.rb index e8eba13e6..a8e80702d 100644 --- a/spec/factories/chouette_2_factories.rb +++ b/spec/factories/chouette_2_factories.rb @@ -1,3 +1,4 @@ +# TODO: Move these factories into their own files so all factory definitions are consistent FactoryGirl.define do factory :organisation do |
