aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorMarc Florisson2012-06-29 10:10:44 +0200
committerMarc Florisson2012-06-29 10:10:44 +0200
commita46b9975c0b9257cb7749201a8bea520e0532a85 (patch)
treedf306b81979e28f955ba1c3dba431a2f7909051f /app/views
parenta96398d24c195c0224e985be9a12b8bd12f76143 (diff)
downloadchouette-core-a46b9975c0b9257cb7749201a8bea520e0532a85.tar.bz2
fix journey_pattern views
Diffstat (limited to 'app/views')
-rw-r--r--app/views/journey_patterns/_journey_pattern.html.erb2
-rw-r--r--app/views/journey_patterns/show.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/journey_patterns/_journey_pattern.html.erb b/app/views/journey_patterns/_journey_pattern.html.erb
index 1d4130f07..41a898888 100644
--- a/app/views/journey_patterns/_journey_pattern.html.erb
+++ b/app/views/journey_patterns/_journey_pattern.html.erb
@@ -1,7 +1,7 @@
<%= div_for(journey_pattern) do %>
<%= link_to journey_name(journey_pattern), [@referential, @line, @route, journey_pattern] %>
<div class="info">
- <% unless journey_pattern.name.blank? %>
+ <% unless journey_pattern.stop_points.empty? %>
<%= t('.from_to', :departure => journey_pattern.stop_points.first.stop_area.name, :arrival => journey_pattern.stop_points.last.stop_area.name) %> -
<% end %>
<%= t('.stop_count', :count => journey_pattern.stop_points.count, :route_count => @route.stop_points.count) %> -
diff --git a/app/views/journey_patterns/show.html.erb b/app/views/journey_patterns/show.html.erb
index eed065f2f..0b9676350 100644
--- a/app/views/journey_patterns/show.html.erb
+++ b/app/views/journey_patterns/show.html.erb
@@ -56,7 +56,7 @@
<% content_for :sidebar do %>
<ul class="actions">
<li><%= link_to t('journey_patterns.actions.edit'), edit_referential_line_route_journey_pattern_path(@referential, @line, @route, @journey_pattern), :class => "edit" %></li>
- <li><%= link_to t('journey_patterns.actions.destroy'), referential_line_route_path(@referential, @line, @route, @journey_pattern), :method => :delete, :confirm => t('journey_patterns.actions.destroy_confirm'), :class => "remove" %></li>
+ <li><%= link_to t('journey_patterns.actions.destroy'), referential_line_route_journey_pattern_path(@referential, @line, @route, @journey_pattern), :method => :delete, :confirm => t('journey_patterns.actions.destroy_confirm'), :class => "remove" %></li>
</ul>
<% end %>