<% title "#{Trail.symbol} Trasy" %> <% subtitle "přehled tras v databázi" %> <%= form_tag('', method: "get") do %> <%= text_field_tag(:search, params[:search]) %> <%= hidden_field_tag(:sort, params[:sort]) %> <%= submit_tag("Search", :type=> :image, :src=>'/assets/search.png', :style=>'width:15px') %> <% end %> <% @trails.each do |trail| %> <% if !trail.kct_trail.andand.error.blank? %> <% else %> <% end %> <% end %>
trasatypukaprioritaKČT laď OSM chknázeverrors
<%= link_to trail.icon_img_html+' '+trail.kctref, trail %> <%= trail.typ %> <%= link_to_not_nil KctTrail.symbol, trail.kct_trail -%><%= link_to_not_nil Trail.symbol, trail -%><%= link_to_not_nil OsmTrail.symbol, trail.osm_trail -%> <%= trail.priority %> <% if !v=trail.kct_trail.nil? %> <% v=trail.kct_trail.imported_guideposts_count; m=trail.kct_trail.kct_guideposts.count %> <%= v %>/<%= m %> <% end %> <% if trail.ok_kct %><% end %> <% unless trail.osm_trail.nil? nos = trail.osm_trail.number_of_segments noe = trail.osm_trail.number_of_ends || '?' %> <%= nos %>s <%= noe %>e <%= link_to 'reimp', reimport_osm_trail_path(trail.osm_trail), {title: "reimportovat trasu #{trail.kctref} z OSM" } %> <% end %> <%= trail.nazev %> <%= trail.kct_trail.error %>

<%= will_paginate @trails %> <% content_for :navigace do %> <%= link_to 'New Trail', new_trail_path %> Sort by <%= link_to 'priority', :sort=>'priority' %> <% end %>