aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2016-11-09 17:26:05 +0100
committerjpl2016-11-09 17:26:05 +0100
commit7245c5fe30f1c8353b279d9548d49cf23afd2725 (patch)
treeef9efc565b8b7b653e936da0854a587dc9daa3fb
parent8184db48b999fe67c7ab1ec83530d8a86f12bdfc (diff)
downloadchouette-core-7245c5fe30f1c8353b279d9548d49cf23afd2725.tar.bz2
update routes#show
-rw-r--r--app/views/routes/show.html.slim23
1 files changed, 14 insertions, 9 deletions
diff --git a/app/views/routes/show.html.slim b/app/views/routes/show.html.slim
index 26cf2f33f..cb70f078b 100644
--- a/app/views/routes/show.html.slim
+++ b/app/views/routes/show.html.slim
@@ -43,15 +43,20 @@
p.after_map
-h3 = t('.stop_points')
-#stop_points.list-group
- - @route.stop_points.each do |stop|
- .list-group-item style='display: table;width: 100%;'
- div style='display: table-cell;vertical-align: middle;'
- div style='display: inline-block;width: 9%; vertical-align: middle;'
- = "##{stop.stop_area.id}"
- div style='display: inline-block;width: 91%; vertical-align: middle;'
- = stop.stop_area.inspect
+#stop_points.panel.panel-default
+ .panel-heading = t('.stop_points')
+
+ .list-group
+ - @route.stop_points.each do |point|
+ .list-group-item style='display: table;width: 100%;'
+ div style='display: table-cell;vertical-align: middle;'
+ div style='display: inline-block;width: 9%; vertical-align: middle;'
+ = "##{point.stop_area.id}"
+ div style='display: inline-block;width: 91%; vertical-align: middle;'
+ - if point.stop_area.zip_code && point.stop_area.city_name
+ = "#{point.stop_area.name}, #{point.stop_area.zip_code} #{point.stop_area.city_name}"
+ - else
+ = "#{point.stop_area.name}"
#accordion.panel-group
.panel.panel-default