From 24148be964f69140ea46a830cd0d07e43aa61bfc Mon Sep 17 00:00:00 2001
From: Marc Florisson
Date: Tue, 24 Apr 2012 13:28:41 +0200
Subject: add route's views
---
app/views/lines/show.html.erb | 8 ++++++++
1 file changed, 8 insertions(+)
(limited to 'app/views/lines')
diff --git a/app/views/lines/show.html.erb b/app/views/lines/show.html.erb
index cd0e6b2ac..23c65573f 100644
--- a/app/views/lines/show.html.erb
+++ b/app/views/lines/show.html.erb
@@ -51,10 +51,18 @@
+
<%= t('.itineraries') %>
+<%= will_paginate @routes %>
+
+ <%= render :partial => "routes/route", :collection => @routes %>
+
+<%= will_paginate @routes %>
+
<% content_for :sidebar do %>
- <%= link_to t('lines.actions.edit'), edit_referential_line_path(@referential, @line), :class => "edit" %>
- <%= link_to t('lines.actions.destroy'), referential_line_path(@referential, @line), :method => :delete, :confirm => t('lines.actions.destroy_confirm'), :class => "remove" %>
+ - <%= link_to t('routes.actions.new'), new_referential_line_route_path(@referential, @line), :class => "add" %>
<% end %>
--
cgit v1.2.3