aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_lines/show.html.slim
diff options
context:
space:
mode:
authorvlatka pavisic2016-11-17 14:30:40 +0100
committervlatka pavisic2016-11-17 14:32:21 +0100
commit7a9fb7304e9cd956988d5e624ed26fed1d77ca09 (patch)
tree3b952a7b712f41f9677e34a3ce3113842a26d400 /app/views/referential_lines/show.html.slim
parentc68bb71ce5f3741788c65bb92904cf999c2fa654 (diff)
downloadchouette-core-7a9fb7304e9cd956988d5e624ed26fed1d77ca09.tar.bz2
Refs #1937 : Lines filtering by transport mode
Diffstat (limited to 'app/views/referential_lines/show.html.slim')
-rw-r--r--app/views/referential_lines/show.html.slim16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim
index 4c439d08a..309331efc 100644
--- a/app/views/referential_lines/show.html.slim
+++ b/app/views/referential_lines/show.html.slim
@@ -56,14 +56,14 @@
/ p
/ label = "#{@line.human_attribute_name('mobility_restricted_suitability')} : "
- /
+ /
/ - if @line.mobility_restricted_suitability.nil?
/ = @line.human_attribute_name("unspecified_mrs")
/ - elsif @line.mobility_restricted_suitability?
/ = @line.human_attribute_name("accessible")
/ - else
/ = @line.human_attribute_name("not_accessible")
- /
+ /
/ br
/ = "#{@line.human_attribute_name('number_of_mrs_vj')} : #{@line.vehicle_journeys.where('mobility_restricted_suitability = ?', true).count}"
/ br
@@ -71,29 +71,29 @@
/ br
/ = "#{@line.human_attribute_name('number_of_null_mrs_vj')} : "
/ = @line.vehicle_journeys.count - (@line.vehicle_journeys.where("mobility_restricted_suitability = ?", true).count + @line.vehicle_journeys.where("mobility_restricted_suitability = ?", false).count)
- /
+ /
/ p
/ label = "#{@line.human_attribute_name('flexible_service')} : "
- /
+ /
/ - if @line.flexible_service.nil?
/ = @line.human_attribute_name("unspecified_fs")
/ - elsif @line.flexible_service?
/ = @line.human_attribute_name("on_demaond_fs")
/ - else
/ = @line.human_attribute_name("regular_fs")
- /
+ /
/ br
/ = "#{@line.human_attribute_name('number_of_fs_vj')} : #{@line.vehicle_journeys.where('flexible_service = ?', true).count}"
/ br
/ = "#{@line.human_attribute_name('number_of_non_fs_vj')} : #{@line.vehicle_journeys.where('flexible_service = ?', false).count}"
/ br
/ = @line.human_attribute_name("number_of_null_fs_vj")
- /
+ /
/ - if @line.flexible_service.nil?
/ = "(#{@line.human_attribute_name('default_fs_msg')})"
- /
+ /
/ = ": #{@line.vehicle_journeys.count - (@line.vehicle_journeys.where('flexible_service = ?', true).count + @line.vehicle_journeys.where('flexible_service = ?', false).count)}"
- /
+ /
/ p
/ label = "#{@line.human_attribute_name('footnotes')} : "
/ ul