Sha256: 35649f6b2e186de871b92a612a579cb230923ed34b6b83b927f2e8a08d51ecb0

Contents?: true

Size: 753 Bytes

Versions: 54

Compression:

Stored size: 753 Bytes

Contents

<% if fields.empty? %>
  <%% for feature in features do -%>
  <%%= debug feature %>
  <%% end %>
<% else %>
<%% if <%= fields.size <= 3 %> %>
<table class="infotab">
  <tr>
<% aliases.each_with_index do |title, i| %>
     <td class="tabtitle"><%= title %></td>
<% end %>
  </tr>
  <%% for feature in features do -%>
    <tr>
<% fields.each_with_index do |field, i| %>
    <td class="tabcell"><%%= feature.<%= field %> %></td>
<% end %>
    </tr>
  <%% end %>
</table>
<%% else %>
<table class="infotab">
<% fields.each_with_index do |field, i| %>
  <tr><td class="tabtitle"><%= aliases[i] %></td>
  <%% for feature in features do -%>
    <td class="tabcell"><%%= feature.<%= field %> %></td>
  <%% end %>
  </tr>
<% end %>
</table>
<%% end %>
<% end %>

Version data entries

54 entries across 27 versions & 1 rubygems

Version Path
gb_mapfish_appserver-0.8.5 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.5 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.4 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.4 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.3 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.3 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.2 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.2 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.1 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.1 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.0 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.8.0 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.0.7 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-0.0.7 lib/tasks/templates/_infotable_auto.html.erb