<% if fields.empty? %> <%% for feature in features do -%> <%%= debug feature %> <%% end %> <% else %> <%% if <%= fields.size <= 3 %> %> <% aliases.each_with_index do |title, i| %> <% end %> <%% for feature in features do -%> <% fields.each_with_index do |field, i| %> <% end %> <%% end %>
<%= title %>Markieren
<%%= feature.<%= field %> %>In Karte markieren
<%% else %> <% fields.each_with_index do |field, i| %> <%% for feature in features do -%> <%% end %> <% end %> <%% for feature in features do -%> <%% end %>
<%= aliases[i] %><%%= feature.<%= field %> %>
MarkierenIn Karte markieren
<%% end %> <% end %> <%% if features.size > 1 -%> <%% values = features.collect(&:<%= layer.pkey %>).join('$') %> In Karte markieren <%% end -%>