Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1507 from 18F/state-export-content
Browse files Browse the repository at this point in the history
State exports summary
  • Loading branch information
shawnbot authored Jun 20, 2016
2 parents 2fa55fb + f3bc5f7 commit e2ecf9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
14 changes: 5 additions & 9 deletions _includes/location/key-exports.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
{% assign exports_commodities_num = exports | size | minus: 2 %}

{% if exports_commodities_num > 0 %}
{{ include.location_name }} exported
{{ exports_commodities_num }} extractives
product{{ exports_commodities_num | plural }} in {{ include.year }},
generating
In {{ include.year }},
{{ exports_commodities_num }} extractive industries
product{{ exports_commodities_num | plural }} ranked among the top 25 exports from {{ include.location_name }}, generating
<a href="#exports">${{ exports.All[include.year].dollars | intcomma }}</a>
in export revenue, or
{{ exports.All[include.year].percent | percent }}%.
{% else %}
Extractive industries did not account for any of
{{ include.location_name }}'s top 25 exports in {{ include.year }}.
{% endif %}
{{ exports.All[include.year].percent | percent }} percent of all export revenue.
{% endif %}
7 changes: 5 additions & 2 deletions _includes/location/section-exports.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ <h2>Exports</h2>

<div class="chart-list has-intro">

{% if export_commodities %}
<div class="chart-list-intro">
<p>{{ exports_summary | strip_html }}</p>
</div>
Expand Down Expand Up @@ -43,10 +44,12 @@ <h4>
percent=false
%}
</div>

</section><!-- /.chart-item -->
{% endfor %}

{% else %}
<p>In {{ year }}, extractive industries products did not rank among the top 25 exports from {{ state_name }}.</p>
{% endif %}
</div><!-- /.chart-list -->

<p><a href="{{ site.baseurl }}/downloads/#exports">Exports data comes from the U.S. Census Bureau</a>.</p>
</section>

0 comments on commit e2ecf9e

Please sign in to comment.