Skip to content

Commit

Permalink
Merge pull request #8359 from cfpb/tccp/sharing-details
Browse files Browse the repository at this point in the history
TCCP: Add sharing details
  • Loading branch information
niqjohnson authored Apr 30, 2024
2 parents 19bc9b9 + a15dc3e commit 4926d10
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cfgov/tccp/jinja2/tccp/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
About this tool | Consumer Financial Protection Bureau
{%- endblock %}

{% block desc -%}
Details on how our tool to explore credit cards works.
{%- endblock desc %}

{% block og_desc -%}
{{ self.desc() }}
{%- endblock og_desc %}

{% block og_image %}
{%- include "tccp/includes/og_image.html" -%}
{% endblock %}

{% block content_main %}
<div class="block block--flush-top">
<div class="eyebrow">Explore credit cards</div>
Expand Down
12 changes: 12 additions & 0 deletions cfgov/tccp/jinja2/tccp/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
| Consumer Financial Protection Bureau
{%- endblock title %}

{% block desc -%}
Full interest rate and fee information for {{ card.product_name }} from {{ card.institution_name }}
{%- endblock desc %}

{% block og_desc -%}
{{ self.desc() }}
{%- endblock og_desc %}

{% block og_image %}
{%- include "tccp/includes/og_image.html" -%}
{% endblock %}

{% block javascript scoped %}
{{ super() }}
<script src="{{ static( 'js/routes/on-demand/expandable.js' ) }}"></script>
Expand Down
12 changes: 12 additions & 0 deletions cfgov/tccp/jinja2/tccp/cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
{{ title }} | {{ super() }}
{%- endblock title %}

{% block desc -%}
Search our large database of credit cards to find ones that are best for you.
{%- endblock desc %}

{% block og_desc -%}
{{ self.desc() }}
{%- endblock og_desc %}

{% block og_image %}
{%- include "tccp/includes/og_image.html" -%}
{% endblock %}

{% block javascript scoped %}
{{ super() }}
<script src="{{ static( 'js/routes/on-demand/filterable-list-controls.js' ) }}"></script>
Expand Down
7 changes: 7 additions & 0 deletions cfgov/tccp/jinja2/tccp/includes/og_image.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{%- set og_image_url=request.build_absolute_uri(
static('apps/tccp/img/explore-credit-cards-sharing.png')
) -%}

<meta property="og:image" content="{{ og_image_url }}">
<meta property="twitter:image" content="{{ og_image_url }}">
<meta name="twitter:card" content="summary_large_image">
12 changes: 12 additions & 0 deletions cfgov/tccp/jinja2/tccp/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
{{ title }} | Consumer Financial Protection Bureau
{%- endblock title %}

{% block desc -%}
Search our large database of credit cards to find ones that are best for you.
{%- endblock desc %}

{% block og_desc -%}
{{ self.desc() }}
{%- endblock og_desc %}

{% block og_image %}
{%- include "tccp/includes/og_image.html" -%}
{% endblock %}

{% block javascript scoped %}
{{ super() }}
<script src="{{ static( 'apps/tccp/js/index.js' ) }}"></script>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4926d10

Please sign in to comment.