From 9d5b817bb9053b25cd5d3914ff95e1a592fc62e9 Mon Sep 17 00:00:00 2001 From: Michel Etienne Date: Wed, 5 Sep 2012 18:51:16 +0200 Subject: block journey_pattern and vehicle_journey link when less than 2 stop_points are defined on route --- Gemfile.lock | 3 +-- app/views/journey_patterns/show.html.erb | 4 ++++ app/views/routes/show.html.erb | 8 ++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index e8929de66..5af91e2b9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: git://chouette.dryade.priv/ninoxe - revision: 55d3c3c3f8dde90dc1b30224cefbe679a4ee9786 + revision: ddc6b0f9adfb2df8aa2b521d6a749c229977383c specs: ninoxe (0.0.8) GeoRuby @@ -195,7 +195,6 @@ GEM jruby-rack (1.1.9) jruby-rack-worker (0.4-java) jruby-rack (>= 1.1.1) - json (1.7.5) json (1.7.5-java) json_pure (1.7.5) launchy (2.1.0) 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 @@ -4,6 +4,10 @@ <%= @map.to_html %>
+ + <%= link_to line_formatted_name( @line), [@referential, @line] %> +
<%= link_to @route.name, [@referential, @line, @route] %> diff --git a/app/views/routes/show.html.erb b/app/views/routes/show.html.erb index 970ab7981..f65761fc6 100644 --- a/app/views/routes/show.html.erb +++ b/app/views/routes/show.html.erb @@ -65,6 +65,7 @@