aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_stop_areas
diff options
context:
space:
mode:
authorjpl2016-12-02 12:14:51 +0100
committerjpl2016-12-02 12:14:51 +0100
commit2a92002b6e4a6a54af85f8144e25944043eefb0f (patch)
tree1897142b2219b428672c5de33878be215b036e7a /app/views/referential_stop_areas
parent76cc4431ba302bae2edf925417f438cfcf0afd57 (diff)
downloadchouette-core-2a92002b6e4a6a54af85f8144e25944043eefb0f.tar.bz2
Refs #2015: adding sortable columns for ref_* & * (+ fix for nil values)
Diffstat (limited to 'app/views/referential_stop_areas')
-rw-r--r--app/views/referential_stop_areas/_stop_areas.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/referential_stop_areas/_stop_areas.html.slim b/app/views/referential_stop_areas/_stop_areas.html.slim
index bb646d914..f8551a0ac 100644
--- a/app/views/referential_stop_areas/_stop_areas.html.slim
+++ b/app/views/referential_stop_areas/_stop_areas.html.slim
@@ -1,6 +1,6 @@
- if @stop_areas.any?
= table_builder @stop_areas,
- { 'Object_id' => 'objectid', @stop_areas.human_attribute_name(:name) => 'name', @stop_areas.human_attribute_name(:registration_number) => 'registration_number', @stop_areas.human_attribute_name(:city_name) => 'city_name', @stop_areas.human_attribute_name(:zip_code) => 'zip_code', @stop_areas.human_attribute_name(:lines) => Proc.new { |n| n.lines.count } },
+ { 'Object_id' => 'objectid', @stop_areas.human_attribute_name(:name) => 'name', @stop_areas.human_attribute_name(:registration_number) => 'registration_number', @stop_areas.human_attribute_name(:city_name) => 'city_name', @stop_areas.human_attribute_name(:zip_code) => 'zip_code', @stop_areas.human_attribute_name(:lines) => Proc.new { |n| n.try(:lines).try(:count) } },
[:show, :edit, :delete],
'table table-bordered'