Sha256: 35abd6df6858f24e67aec58f2ba7d62733766e7af9893798f12086c049ac564d
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
<h3><%= Region.count %> Regions</h3> <table> <% @countries.each do |country| %> <% if country.regions.count > 0 %> <tr> <td class='country-key' style='vertical-align: baseline;'> <%= country.key %> </td> <td style='white-space: nowrap; vertical-align: baseline;'> <%= image_tag_for_country( country ) %> <%= link_to "#{country.title} (#{country.code})", short_country_path( country ) %> <span class='city-count'> (<%= country.regions.count %>) </span> </td> <td> <table> <% country.regions.each do |region| %> <tr> <td class='region-key' style='vertical-align: baseline;'> <%= region.key %> </td> <td style='vertical-align: baseline;'> <%= region.title_w_synonyms %> <br> <%= render_tags( region.tags ) %> </td> <td style='vertical-align: baseline; text-align: right;'> <span class='city-count'> (<%= region.cities.count %>) </span> </td> <td style='vertical-align: baseline;'> <% region.cities.each_with_index do |city,index| %> <%= '•' if index > 0 %> <%= city.title %> <% end %><!-- each city --> </td> </tr> <% end %> <!-- each region --> </table> </td> </tr> <% end %><!-- if country.regions.count > 0 --> <% end %><!-- each country --> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
worlddb-admin-0.1.1 | app/views/world_db_admin/regions/index.html.erb |
worlddb-admin-0.1.0 | app/views/world_db_admin/regions/index.html.erb |