Sha256: a6f45645f7c5788d50dcca3b53bd81168ba78fc8eb1d9c827c3411ae39274ef5

Contents?: true

Size: 1.47 KB

Versions: 2

Compression:

Stored size: 1.47 KB

Contents

<h3><%= @tag.key %></h3>

<p>
  Sort By: <%= link_to 'Key A-Z', short_tag_path( @tag, order: 'key' )  %>
          &bull;
          <%= link_to 'Title A-Z', short_tag_path( @tag, order: 'title' )  %>
          &bull;
          <%= link_to 'Code A-Z', short_tag_path( @tag, order: 'code' )  %>
          &bull;
        <%= link_to 'Population', short_tag_path( @tag, order: 'pop' ) %>
          &bull;
        <%= link_to 'Area (in kmĀ²)', short_tag_path( @tag, order: 'area' ) %>
</p>



<% if @tag.countries.count > 0 %>
<h4>Countries</h4>

<p>
  Download: <%= link_to 'CSV', csv_countries_by_tag_path( @tag ), :title => 'Comma-separated values; tabular data in plain text' %>     
    &bull;
   <%= link_to 'Table', table_countries_by_tag_path( @tag ), :title => 'Hypertext table' %>   
</p>

<% count = @tag.countries.where( s: true ).count
     if count > 0
%>
<p>
   <%= render_countries( @tag.countries.where( s: true ), count: count, order: @order) %>
</p>
<% end %>

<% count = @tag.countries.where( c: true ).count
     if count > 0
%>
<p>
   <%= render_countries( @tag.countries.where( c: true ), count: count, order: @order) %>
</p>
<% end %>

<% count = @tag.countries.where( d: true ).count
     if count > 0
%>
<p>
   <%= render_countries( @tag.countries.where( d: true ), count: count, order: @order) %>
</p>
<% end %>

<% end %>



<% count = @tag.regions.count
   if count > 0
%>
<h4>Regions</h4>

<p>
  <%= render_regions( @tag.regions, count: count, order: @order) %>
</p>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
worlddb-admin-0.1.1 app/views/world_db_admin/tags/show.html.erb
worlddb-admin-0.1.0 app/views/world_db_admin/tags/show.html.erb