aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/journey_patterns
diff options
context:
space:
mode:
authorMichel Etienne2012-09-05 18:51:16 +0200
committerMichel Etienne2012-09-05 18:51:16 +0200
commit9d5b817bb9053b25cd5d3914ff95e1a592fc62e9 (patch)
tree7661d5852e028aca7b585783183befe8dfef1f79 /app/views/journey_patterns
parente524f087ae7fe7543bffbdf281ed9e07c00b9418 (diff)
downloadchouette-core-9d5b817bb9053b25cd5d3914ff95e1a592fc62e9.tar.bz2
block journey_pattern and vehicle_journey link when less than 2 stop_points are defined on route
Diffstat (limited to 'app/views/journey_patterns')
-rw-r--r--app/views/journey_patterns/show.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/journey_patterns/show.html.erb b/app/views/journey_patterns/show.html.erb
index 507a71cca..149f9df6a 100644
--- a/app/views/journey_patterns/show.html.erb
+++ b/app/views/journey_patterns/show.html.erb
@@ -5,6 +5,10 @@
<div class="summary">
<p>
+ <label><%= @route.human_attribute_name(:line) %>: </label>
+ <%= link_to line_formatted_name( @line), [@referential, @line] %>
+ </p>
+ <p>
<label><%= @journey_pattern.human_attribute_name(:route) %>: </label>
<%= link_to @route.name, [@referential, @line, @route] %>
</p>