diff options
| author | Marc Florisson | 2012-04-24 13:28:41 +0200 |
|---|---|---|
| committer | Marc Florisson | 2012-04-24 13:28:41 +0200 |
| commit | 24148be964f69140ea46a830cd0d07e43aa61bfc (patch) | |
| tree | 66d2e10974bcb4bb0ab8cf7fda8ff11d38dae8e7 /app/views/lines | |
| parent | 53cb5d9db1f3ccde220124e75dc04c91bd1802a3 (diff) | |
| download | chouette-core-24148be964f69140ea46a830cd0d07e43aa61bfc.tar.bz2 | |
add route's views
Diffstat (limited to 'app/views/lines')
| -rw-r--r-- | app/views/lines/show.html.erb | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ </div> </div> +<h3 class="routes"><%= t('.itineraries') %></h3> +<%= will_paginate @routes %> +<div class="routes paginated_content"> + <%= render :partial => "routes/route", :collection => @routes %> +</div> +<%= will_paginate @routes %> + <% content_for :sidebar do %> <ul class="actions"> <li><%= link_to t('lines.actions.edit'), edit_referential_line_path(@referential, @line), :class => "edit" %></li> <li><%= link_to t('lines.actions.destroy'), referential_line_path(@referential, @line), :method => :delete, :confirm => t('lines.actions.destroy_confirm'), :class => "remove" %></li> + <li><%= link_to t('routes.actions.new'), new_referential_line_route_path(@referential, @line), :class => "add" %></li> <br> </ul> <% end %> |
