<% title "#{OsmTrail.symbol} OSM Trasy" %> <% subtitle "informace stažené přímo z OSM" %> <% @osm_trails.each do |osm_trail| %> <% raise 'OSM trasa je prázdná' if osm_trail.nil? %> > <% end %>
trasakctreftyp navpri.rozcsegpozn
<%= link_to "#{osm_trail.icon_img_html} #{osm_trail.osmid}".html_safe, osm_trail, :title=>osm_trail.nazev %> <%= osm_trail.kctref.to_s[0..12] %> <%= osm_trail.typ %> <%= link_to_not_nil KctTrail.symbol, osm_trail.kct_trail -%><%= link_to_not_nil Trail.symbol, osm_trail.trail -%><%= link_to_not_nil OsmTrail.symbol, edit_osm_trail_url(osm_trail) -%> <%= osm_trail.priority %> <% v=osm_trail.osm_guideposts.count; m=osm_trail.andand.kct_trail.andand.kct_guideposts.andand.count; %> <% if m.nil? %> <% else %> <%= v %>/<%= m %> <% end %> <%= osm_trail.number_of_segments %> <%= '%.1f' % osm_trail.length %> <%= link_if_not_nil osm_trail.trail %> <%= link_if_not_nil osm_trail.kct_trail %> <%= osm_trail.error %>
<%= will_paginate @osm_trails unless @osm_trails.is_a?(Array) %>
<% content_for :navigace do %> Sort by : <%= link_to 'Priority', :order => 'priority' %>, <%= link_to 'Pilsen proximity', :order => 'pilsen' %>, <%= link_to 'Length', :order => 'length' %>, <%= link_to 'New Osm trail', new_osm_trail_path %> <% end %>