Sha256: 26b1a6fdaaba95423b907a698091c96d05cda17c4dcd4a01b5e28db86fd10165

Contents?: true

Size: 1.84 KB

Versions: 7

Compression:

Stored size: 1.84 KB

Contents

<%= breadcrumbs @urban_area.name, active: @urban_area %>

<h1><%= @urban_area.name %></h1>

<table class="table table-striped">
  <tbody>
    <tr>
      <th>GEOID</th>
      <td><%= @urban_area.geoid %></td>
    </tr>
    <tr>
      <th>Short Name</th>
      <td><%= @urban_area.short_name %></td>
    </tr>
    <tr>
      <th>Type</th>
      <td><%= @urban_area.urbanized? ? "Urbanized Area" : "Urban Cluster" %></td>
    </tr>
    <tr>
      <th>Primary County</th>
      <td><%= link_to @urban_area.primary_county.full_name, county_path(@urban_area.primary_county) %></td>
    </tr>
    <tr>
      <th>Population</th>
      <td><%= formatted_number(@urban_area.population) %></td>
    </tr>
    <tr>
      <th>Housing Units</th>
      <td><%= formatted_number(@urban_area.housing_units) %></td>
    </tr>
    <tr>
      <th>Land Area (mi<sup>2</sup>)</th>
      <td><%= formatted_number(@urban_area.land_area, round: 0) %></td>
    </tr>
    <tr>
      <th>Water Area (mi<sup>2</sup>)</th>
      <td><%= formatted_number(@urban_area.water_area, round: 0) %></td>
    </tr>
    <tr>
      <th>Coordinates</th>
      <td><%= google_maps_link(@urban_area) %></td>
    </tr>
  </tbody>
</table>

<br>

<h2><%= pluralize(@urban_area.counties.count, "County") %></h2>

<%= render "counties/table", counties: @urban_area.counties, urban_area: @urban_area %>

<br>

<h2><%= pluralize(@urban_area.county_subdivisions.count, "County Subdivision") %></h2>

<%= render "county_subdivisions/table", county_subdivisions: @urban_area.county_subdivisions, urban_area: @urban_area %>

<br>

<h2><%= pluralize(@urban_area.places.count, "Place") %></h2>

<%= render "places/table", places: @urban_area.places, urban_area: @urban_area %>

<br>

<h2><%= pluralize(@urban_area.zctas.count, "ZIP Code Tabulation Area") %></h2>

<%= render "zctas/table", zctas: @urban_area.zctas, urban_area: @urban_area %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
us_geo-2.1.1 explorer_app/app/views/urban_areas/show.html.erb
us_geo-2.1.0 explorer_app/app/views/urban_areas/show.html.erb
us_geo-2.0.4 explorer_app/app/views/urban_areas/show.html.erb
us_geo-2.0.3 explorer_app/app/views/urban_areas/show.html.erb
us_geo-2.0.2 explorer_app/app/views/urban_areas/show.html.erb
us_geo-2.0.1 explorer_app/app/views/urban_areas/show.html.erb
us_geo-2.0.0 explorer_app/app/views/urban_areas/show.html.erb