Sha256: 03e20e1c15dd648655d526074e211ccc3e131c3e248fba7fc7c8d7447c00fea4

Contents?: true

Size: 1.29 KB

Versions: 7

Compression:

Stored size: 1.29 KB

Contents

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

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

<table class="table table-striped">
  <tbody>
    <tr>
      <th>Code</th>
      <td><%= @state.code %></td>
    </tr>
    <tr>
      <th>FIPS ID</th>
      <td><%= @state.fips %></td>
    </tr>
    <tr>
      <th>Type</th>
      <td><%= @state.type %></td>
    </tr>
    <% if @state.region %>
      <tr>
        <th>Region</th>
        <td><%= link_to @state.region.name, region_path(@state.region) %></td>
      </tr>
    <% end %>
    <% if @state.division %>
      <tr>
        <th>Division</th>
        <td><%= link_to @state.division.name, division_path(@state.division) %></td>
      </tr>
    <% end %>
    <tr>
      <th>Population</th>
      <td><%= formatted_number(@state.population) %></td>
    </tr>
    <tr>
      <th>Housing Units</th>
      <td><%= formatted_number(@state.housing_units) %></td>
    </tr>
    <tr>
      <th>Land Area (mi<sup>2</sup>)</th>
      <td><%= formatted_number(@state.land_area, round: 0) %></td>
    </tr>
    <tr>
      <th>Water Area (mi<sup>2</sup>)</th>
      <td><%= formatted_number(@state.water_area, round: 0) %></td>
    </tr>
  </tbody>
</table>

<br>

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

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