diff options
| author | Michel Etienne | 2014-08-22 17:10:01 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-08-22 17:10:01 +0200 |
| commit | 2f082acdb5d708aa3acf6c71800727acfd1eaaf4 (patch) | |
| tree | f83b25baf287b1f3b64181fb9176632b694cce36 | |
| parent | 6b026e1eeb3702de448b5ae3a2ac8ce6df898e4e (diff) | |
| download | chouette-core-2f082acdb5d708aa3acf6c71800727acfd1eaaf4.tar.bz2 | |
add link to new item on show items
| -rw-r--r-- | app/views/routes/show.html.erb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/views/routes/show.html.erb b/app/views/routes/show.html.erb index 3a9504775..5621f7a36 100644 --- a/app/views/routes/show.html.erb +++ b/app/views/routes/show.html.erb @@ -94,13 +94,9 @@ <li><%= link_to t('routes.actions.edit'), edit_referential_line_route_path(@referential, @line, @route), :class => "edit" %></li> <li><%= link_to t('routes.actions.destroy'), referential_line_route_path(@referential, @line, @route), :method => :delete, :data => {:confirm => t('routes.actions.destroy_confirm')}, :class => "remove" %></li> <% if @route.stop_points.size >= 2 %> - <li> - <%= link_to t('journey_patterns.actions.new'), new_referential_line_route_journey_pattern_path(@referential, @line, @route), :class => "add" %> - </li> + <li><%= link_to t('journey_patterns.actions.new'), new_referential_line_route_journey_pattern_path(@referential, @line, @route), :class => "add" %></li> <% end %> - <li> - <%= link_to t('vehicle_journey_imports.new.title'), new_referential_line_route_vehicle_journey_import_path( @referential, @line, @route ), :class => "import" %> - </li> + <li><%= link_to t('vehicle_journey_imports.new.title'), new_referential_line_route_vehicle_journey_import_path( @referential, @line, @route ), :class => "import" %></li> <% if @route.journey_patterns.size > 0 %> <li> <i class="fa fa-clock-o fa-fw"></i><%= link_to t('vehicle_journeys.actions.index'), [@referential, @line, @route, :vehicle_journeys], :class => "with_fa" %> |
