diff options
| author | Marc Florisson | 2012-09-06 10:31:18 +0200 |
|---|---|---|
| committer | Marc Florisson | 2012-09-06 10:31:18 +0200 |
| commit | 65f44388bd45b3d996e527e2abd19f4543aa00a7 (patch) | |
| tree | 9f02c07b456e09d45c7927625ae9cc8f27e282c1 /app | |
| parent | 09500773ee2bdb67719ffa0a6e529107a7cfc663 (diff) | |
| parent | a54aa55e7d435ff0974c15723038278009a69683 (diff) | |
| download | chouette-core-65f44388bd45b3d996e527e2abd19f4543aa00a7.tar.bz2 | |
Merge branch 'master' of chouette.dryade.priv:/srv/git/chouette2
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/journey_patterns/show.html.erb | 4 | ||||
| -rw-r--r-- | app/views/routes/_route.html.erb | 8 | ||||
| -rw-r--r-- | app/views/routes/show.html.erb | 7 |
3 files changed, 17 insertions, 2 deletions
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 @@ -5,6 +5,10 @@ <div class="summary"> <p> + <label><%= @route.human_attribute_name(:line) %>: </label> + <%= link_to line_formatted_name( @line), [@referential, @line] %> + </p> + <p> <label><%= @journey_pattern.human_attribute_name(:route) %>: </label> <%= link_to @route.name, [@referential, @line, @route] %> </p> diff --git a/app/views/routes/_route.html.erb b/app/views/routes/_route.html.erb index e99f418b1..416a032ea 100644 --- a/app/views/routes/_route.html.erb +++ b/app/views/routes/_route.html.erb @@ -10,10 +10,16 @@ <% if route.direction.blank? %> <%= route.human_attribute_name('direction') %> <%= route.direction %> - <% end %> - <%= route.human_attribute_name('wayback_code') %> <%= (route.wayback=="A") ? t('route.wayback.positive') : t('wayback.negative') %> + <%= route.human_attribute_name('wayback_code') %> <%= (route.wayback=="A") ? t('.wayback.positive') : t('.wayback.negative') %> + <% if route.journey_patterns.size > 0 %> <div class="actions"> <%= link_to t("vehicle_journeys.actions.index"), referential_line_route_vehicle_journeys_path(@referential, @line, route), :class => "link" %> </div> + <% else %> + <div class="actions"> + <%= t('.no_journey_pattern')%> + </div> + <% end%> </div> <% end %> diff --git a/app/views/routes/show.html.erb b/app/views/routes/show.html.erb index 970ab7981..ad2ba73b4 100644 --- a/app/views/routes/show.html.erb +++ b/app/views/routes/show.html.erb @@ -65,7 +65,7 @@ </div> <p class="after_map" /> - <h3 class="route_stop_points"> +<h3 class="route_stop_points"> <a class="stop_points"><%= t('.stop_points') %> <%= image_tag("icons/plus.png" , :class => "switcher") %> <%= image_tag("icons/minus.png" , :class => "switcher" , :style => "display: none;") %> @@ -85,6 +85,7 @@ <%= render :partial => "journey_patterns/journey_pattern", :collection => @route.journey_patterns %> </div> + <% content_for :sidebar do %> <ul class="actions"> <li><%= link_to t('routes.actions.edit'), edit_referential_line_route_path(@referential, @line, @route), :class => "edit" %></li> @@ -92,12 +93,16 @@ <li> <%= link_to t('stop_points.actions.sort'), [@referential, @line, @route, :stop_points], :class => "edit" %> </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> +<% end %> +<% if @route.journey_patterns.size > 0 %> <li> <%= link_to t('vehicle_journeys.actions.index'), [@referential, @line, @route, :vehicle_journeys], :class => "link" %> </li> +<% end %> </ul> <% end %> |
