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-2.0.0 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-2.0.0 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.1.1 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.1.1 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.1.0 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.1.0 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.6 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.6 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.5 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.5 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.4 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.4 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.3 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.3 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.2 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.2 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.1 test/dummy/lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.1 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.0 lib/tasks/templates/_infotable_auto.html.erb
gb_mapfish_appserver-1.0.0 test/dummy/lib/tasks/templates/_infotable_auto.html.erb