% 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 %>
trasa | typ | uka | priorita | KČT laď | OSM chk | název | errors | |
---|---|---|---|---|---|---|---|---|
<%= 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 %>
|
<% 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 %> | <% if !trail.kct_trail.andand.error.blank? %><%= trail.kct_trail.error %> | <% else %><% end %> |