-
Notifications
You must be signed in to change notification settings - Fork 112
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 #8485 from cfpb/tccp/details-disclaimers
TCCP: Add APR disclaimers to card details
- Loading branch information
Showing
6 changed files
with
92 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{# ========================================================================== | ||
|
||
APR disclaimer | ||
|
||
========================================================================== | ||
|
||
Description: | ||
|
||
A disclaimer that is shown with all APRs in the card details. | ||
|
||
published_date: Date the data was published. | ||
|
||
apr_type: Text of the kind of APR: purchase, balance transfer, | ||
or cash advance. | ||
|
||
is_risk_based: Boolean telling if the APR varies by credit score. | ||
|
||
========================================================================== #} | ||
|
||
{% from 'tccp/includes/fields.html' import date %} | ||
|
||
{%- macro apr_disclaimer(published_date, apr_type, is_risk_based) -%} | ||
|
||
<p class="m-apr-disclaimer"> | ||
*As of {{ date(published_date) -}}. | ||
Advertised {{ apr_type }} APRs change over time {{- ' and are specific to the applicant, based on your credit score' if is_risk_based -}}. | ||
Check rates before applying. | ||
</p> | ||
|
||
{%- endmacro -%} |
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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{% from 'tccp/includes/fields.html' import date %} | ||
|
||
{%- macro data_published(value, verbose=false) -%} | ||
{%- macro data_published(value) -%} | ||
|
||
<p class="u-small-text u-small-text--subtle"> | ||
Data as of {{ date(value) }} | ||
({{- 'credit card terms may have changed since then, double-check with the company | ||
for the most current terms or ' if verbose -}} | ||
<a href="{{ url('tccp:about') }}">{{ 'l' if verbose else 'L' }}earn about the data</a>) | ||
(<a href="{{ url('tccp:about') }}">Learn about the data</a>) | ||
</p> | ||
|
||
{%- endmacro %} |
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 |
---|---|---|
|
@@ -39,6 +39,6 @@ | |
{{ dt.format_time(datetime) }} | ||
{% endif %} | ||
</time> | ||
{%- endif %} | ||
{%- endif -%} | ||
</span> | ||
{%- endmacro %} |