This repository has been archived by the owner on Dec 23, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from 18F/feature/ie-only
Feature/ie only
- Loading branch information
Showing
8 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,6 @@ <h5 class="entity__term__label">Elections</h5> | |
|
||
</div> | ||
|
||
|
||
{% endblock %} | ||
|
||
{% block scripts %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% with committee=context() %} | ||
|
||
{{ totals_table('Independent Contributions', reports.0.independent_contributions_period) }} | ||
{{ totals_table('Independent Expenditures', reports.0.independent_expenditures_period) }} | ||
|
||
{% endwith %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% with committee=context() %} | ||
|
||
{{ totals_table('Independent Contributions', totals.0.total_independent_contributions) }} | ||
{{ totals_table('Independent Expenditures', totals.0.total_independent_expenditures) }} | ||
|
||
{% endwith %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% with %} | ||
{% set reports = committee.reports %} | ||
{% set totals = committee.totals %} | ||
{% import 'macros/charts.html' as charts %} | ||
{% import 'macros/null.html' as null %} | ||
{% macro group_bar_tooltip(value, key) %} | ||
<div class="chart-series__bar__tooltip"> | ||
<h5 class="chart-series__bar__tooltip__title">{{ key|replace('_', ' ')|title }}</h5> | ||
<span class="chart-series__bar__tooltip__value">{{ null.null( value | currency )}}</span> | ||
</div> | ||
{% endmacro %} | ||
|
||
{% if series_group_has_data(reports, ('independent_contributions_period', 'independent_expenditures_period')) %} | ||
<div class="row"> | ||
<figure class="chart-container chart--r-d"> | ||
<div class="figure__title"> | ||
<h4>Independent Contributions and Independent Expenditures</h4> | ||
<ul class="figure__key flat-list"> | ||
<li><span class="swatch data--receipts"></span> Total Independent Contributions</li> | ||
<li><span class="swatch data--disbursements"></span> Total Independent Expenditures</li> | ||
</ul> | ||
</div> | ||
{{ charts.chart_series_grouped(reports | reverse | list, ('independent_contributions_period', 'independent_expenditures_period'), | ||
label_key=('coverage_start_date', 'coverage_end_date'), tooltip=group_bar_tooltip) }} | ||
</figure> | ||
</div> | ||
{% endif %} | ||
{% endwith %} |