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