Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #853 from cfpb/target_blank
Browse files Browse the repository at this point in the history
Adds rel to links with target _blank
  • Loading branch information
anselmbradford authored Jun 15, 2018
2 parents b230e22 + 503e658 commit 092bd0e
Show file tree
Hide file tree
Showing 21 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion regulations/static/regulations/js/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var notices = {
var url = results[i].html_url,
title = results[i].title;
notices.config.$container.append(
'<li><a class="external" href="' + url + '" target="_blank">' + title + '</a></li>'
'<li><a class="external" href="' + url + '" target="_blank" rel="noopener noreferrer">' + title + '</a></li>'
);
}

Expand Down
4 changes: 2 additions & 2 deletions regulations/templates/regulations/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ <h2 class="hero-heading">About eRegulations</h2>
<div class="content-primary column-l">
<p>eRegulations makes regulations <a href="#read" class="standard">easier to read</a> and <a href="#navigation" class="standard">navigate</a>. It
clarifies regulations by bringing <a href="#related-info">related information</a> and <a href="#timeline" class="standard">regulatory history</a>
to the forefront. It is a work in progress by the <a href="http://consumerfinance.gov/" class="external" ria-label="Link opens in a new window" target="_blank">Consumer Financial Protection Bureau</a>, and is a public domain work of the United States Government.</p>
to the forefront. It is a work in progress by the <a href="http://consumerfinance.gov/" class="external" ria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">Consumer Financial Protection Bureau</a>, and is a public domain work of the United States Government.</p>
</div>

<div class="content-secondary column-r well dev-well">
<span class="cf-icon cf-icon-github"></span><span class="icon-text">Github</span>
<h4>Developers</h4>
<p>eRegulations is an open source project. Visit <a href="http://cfpb.github.io/eRegulations/" class="external" ria-label="Link opens in a new window" target="_blank">the project repository</a> to learn more and contribute.</p>
<p>eRegulations is an open source project. Visit <a href="http://cfpb.github.io/eRegulations/" class="external" ria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">the project repository</a> to learn more and contribute.</p>
</div>
</div>
<div id="read" class="inner-wrap easy-read group">
Expand Down
2 changes: 1 addition & 1 deletion regulations/templates/regulations/chrome.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h4>Current Law</h4>
<h5 class="final-rule">Final Rule</h5>
<ul class="rule-list">
{% for notice in version.notices %}
<li><a class="fr-notice external" href="{{notice.fr_url}}" ria-label="Link opens in a new window" target="_blank">Published {{notice.publication_date|date}}</a></li>
<li><a class="fr-notice external" href="{{notice.fr_url}}" ria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">Published {{notice.publication_date|date}}</a></li>
{% endfor %}
</ul>
<div class="diff-selector group">
Expand Down
2 changes: 1 addition & 1 deletion regulations/templates/regulations/diff-chrome.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h4>Current Law</h4>
<div class="timeline-content-wrap">
<ul class="rule-list">
{% for notice in version.notices %}
<li><a class="fr-notice external" href="{{notice.fr_url}}" aria-label="Link opens in a new window" target="_blank">Final Rule &#8211; {{notice.publication_date|date}}</a></li>
<li><a class="fr-notice external" href="{{notice.fr_url}}" aria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">Final Rule &#8211; {{notice.publication_date|date}}</a></li>
{% endfor %}
</ul>
{% if version.version == left_version %}
Expand Down
2 changes: 1 addition & 1 deletion regulations/templates/regulations/generic_help.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h4 tabindex="0">Help</h4>
<div class="chunk expand-drawer">
<div class="sidebar-subsection">
<h5 class="help-title">Interface Help</h5>
<a class="what" href="{% url 'regulations_about' %}#navigation" aria-label="Link opens in a new window" target="_blank">(What's this?)</a>
<a class="what" href="{% url 'regulations_about' %}#navigation" aria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">(What's this?)</a>

<ul class="help-list">
<li><span class="cf-icon cf-icon-table-of-contents help-icon"></span>Table of contents</li>
Expand Down
2 changes: 1 addition & 1 deletion regulations/templates/regulations/landing_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2 class="banner-text"> Regulation {{meta.reg_letter}} - {{meta.statutory_name|

<div class="well landing-contact-info contact">
<h4 class="sentence-header">We want to hear from you!</h4>
<p>Please take our <a class="external" href="https://www.surveymonkey.com/s/CFPB_eRegulations_survey" target="_blank">survey</a> to help the Bureau decide whether to expand and maintain eRegulations.</p>
<p>Please take our <a class="external" href="https://www.surveymonkey.com/s/CFPB_eRegulations_survey" target="_blank" rel="noopener noreferrer">survey</a> to help the Bureau decide whether to expand and maintain eRegulations.</p>
<p>For questions or comments about the platform:</p>
<ul>
<li><address><a href="mailto:CFPB_eRegs_team@cfpb.gov" class="mail">CFPB_eRegs_team@cfpb.gov</a></address></li>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% comment %}
Links to external documents from within the regulation text, like to the US Code, etc
{% endcomment %}
<a href="{{citation.url|safe}}" class="citation external" aria-label="Link opens in a new window" target="_blank">{{citation.label}}</a>
<a href="{{citation.url|safe}}" class="citation external" aria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">{{citation.label}}</a>
2 changes: 1 addition & 1 deletion regulations/templates/regulations/paragraph-sxs.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h3>ANALYSIS TAKEN FROM:</h3>

<h4>Document Number:</h4>
<p>
<a href="{{notice.fr_url}}" class="external" aria-label="Link opens in a new window" target="_blank">{{notice.document_number}}</a>
<a href="{{notice.fr_url}}" class="external" aria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">{{notice.document_number}}</a>
</p>

<h4>Action:</h4>
Expand Down
6 changes: 3 additions & 3 deletions regulations/templates/regulations/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ <h4 tabindex="0">Section-by-section Analysis</h4>
<div class="chunk expand-drawer">
{% if analyses %}
<h5 class="subtitle">Most Recent Analysis</h5>
<a class="what" href="{% url 'regulations_about' %}#related-info" aria-label="Link opens in a new window" target="_blank">(What's this?)</a>
<a class="what" href="{% url 'regulations_about' %}#related-info" aria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">(What's this?)</a>
<ul class="sxs-list">
{% for analysis in analyses %}
<li><a class="sidebar-full sxs-link" href="{% url 'chrome_sxs_view' analysis.label_id analysis.doc_number %}?from_version={{ version }}" data-sxs-paragraph-id="{{analysis.label_id}}" data-doc-number="{{analysis.doc_number}}" data-gtm_ignore="true">{{analysis.text}}<span class="cf-icon cf-icon-right"></span></a></li>
{% endfor %}
</ul>
{% else %}
No analyses available for {{ human_label_id }} in this tool. <a class="what" href="{% url 'regulations_about' %}#related-info" aria-label="Link opens in a new window" target="_blank">(What's this?)</a>
No analyses available for {{ human_label_id }} in this tool. <a class="what" href="{% url 'regulations_about' %}#related-info" aria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">(What's this?)</a>
{% endif %}
</div>
</section> <!-- /.regs-meta -->
<section id="help" class="regs-meta">
{% include "regulations/generic_help.html" %}
<div class="sidebar-subsection">
<h5 class="help-title">Textual Help</h5>
<a class="what" href="{% url 'regulations_about' %}#related-info" aria-label="Link opens in a new window" target="_blank">(What's this?)</a>
<a class="what" href="{% url 'regulations_about' %}#related-info" aria-label="Link opens in a new window" target="_blank" rel="noopener noreferrer">(What's this?)</a>

<ul class="help-list">
<li class="group">
Expand Down
16 changes: 8 additions & 8 deletions regulations/templates/regulations/specific/landing_1002.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ <h3 class="list-header">The regulation covers topics such as: </h3>
{% block additional_resources %}
<h4>Ask CFPB </h4>
<ul>
<li><a href="http://www.consumerfinance.gov/askcfpb/search/?q=discrimination&selected_facets=tag_exact%3Acredit+discrimination" class="external" target="_blank">Credit discrimination</a></li>
<li><a href="http://www.consumerfinance.gov/askcfpb/search/?q=discrimination&selected_facets=tag_exact%3Acredit+discrimination" class="external" target="_blank" rel="noopener noreferrer">Credit discrimination</a></li>
</ul>

<h4>Other resources</h4>

<ul>
<li><a href="http://www.consumerfinance.gov/regulations/disclosure-and-delivery-requirements-for-copies-of-appraisals-and-other-written-valuations-under-the-equal-credit-opportunity-act-regulation-b/" class="external" target="_blank">Information about the appraisals and valuations rule</a></li>
<li><a href="http://files.consumerfinance.gov/f/201411_cfpb_bulletin_disability-income.pdf" class="external" target="_blank">Bulletin on social security disability income verification</a></li>
<li><a href="http://files.consumerfinance.gov/f/201303_cfpb_march_-Auto-Finance-Bulletin.pdf" class="external" target="_blank">Bulletin about indirect auto lending and compliance with the Equal Credit Opportunity Act</a></li>
<li><a href="http://files.consumerfinance.gov/f/201505_cfpb_bulletin-section-8-housing-choice-voucher-homeownership-program.pdf" class="external" target="_blank">Bulletin about Section 8 Housing Choice Voucher homeownership program</a></li>
<li><a href="http://files.consumerfinance.gov/f/201404_cfpb_bulletin_lending_discrimination.pdf" class="external" target="_blank">Bulletin regarding lending discrimination</a></li>
<li><a href="http://files.consumerfinance.gov/f/201307_cfpb_ecoa_baseline-review-module-fair-lending.pdf" class="external" target="_blank">ECOA baseline review modules</a></li>
<li><a href="http://files.consumerfinance.gov/f/201306_cfpb_laws-and-regulations_ecoa-combined-june-2013.pdf" class="external" target="_blank">ECOA examination procedures</a></li>
<li><a href="http://www.consumerfinance.gov/regulations/disclosure-and-delivery-requirements-for-copies-of-appraisals-and-other-written-valuations-under-the-equal-credit-opportunity-act-regulation-b/" class="external" target="_blank" rel="noopener noreferrer">Information about the appraisals and valuations rule</a></li>
<li><a href="http://files.consumerfinance.gov/f/201411_cfpb_bulletin_disability-income.pdf" class="external" target="_blank" rel="noopener noreferrer">Bulletin on social security disability income verification</a></li>
<li><a href="http://files.consumerfinance.gov/f/201303_cfpb_march_-Auto-Finance-Bulletin.pdf" class="external" target="_blank" rel="noopener noreferrer">Bulletin about indirect auto lending and compliance with the Equal Credit Opportunity Act</a></li>
<li><a href="http://files.consumerfinance.gov/f/201505_cfpb_bulletin-section-8-housing-choice-voucher-homeownership-program.pdf" class="external" target="_blank" rel="noopener noreferrer">Bulletin about Section 8 Housing Choice Voucher homeownership program</a></li>
<li><a href="http://files.consumerfinance.gov/f/201404_cfpb_bulletin_lending_discrimination.pdf" class="external" target="_blank" rel="noopener noreferrer">Bulletin regarding lending discrimination</a></li>
<li><a href="http://files.consumerfinance.gov/f/201307_cfpb_ecoa_baseline-review-module-fair-lending.pdf" class="external" target="_blank" rel="noopener noreferrer">ECOA baseline review modules</a></li>
<li><a href="http://files.consumerfinance.gov/f/201306_cfpb_laws-and-regulations_ecoa-combined-june-2013.pdf" class="external" target="_blank" rel="noopener noreferrer">ECOA examination procedures</a></li>
</ul>
{% endblock %}
6 changes: 3 additions & 3 deletions regulations/templates/regulations/specific/landing_1003.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ <h3 class="list-header">The regulation covers topics such as: </h3>
<h4>Other resources</h4>

<ul>
<li><a href="http://www.consumerfinance.gov/hmda/" class="external" target="_blank">HMDA Data Tools</a></li>
<li><a href="http://www.ffiec.gov/hmda/" class="external" target="_blank">FFIEC HMDA Materials</a></li>
<li><a href="http://www.consumerfinance.gov/policy-compliance/guidance/implementation-guidance/hmda-implementation/" class="external" target="_blank">HMDA Rule Implementation</a></li>
<li><a href="http://www.consumerfinance.gov/hmda/" class="external" target="_blank" rel="noopener noreferrer">HMDA Data Tools</a></li>
<li><a href="http://www.ffiec.gov/hmda/" class="external" target="_blank" rel="noopener noreferrer">FFIEC HMDA Materials</a></li>
<li><a href="http://www.consumerfinance.gov/policy-compliance/guidance/implementation-guidance/hmda-implementation/" class="external" target="_blank" rel="noopener noreferrer">HMDA Rule Implementation</a></li>
</ul>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3 class="list-header">The regulation covers topics such as: </h3>
{% block additional_resources %}
<h4>Ask CFPB </h4>
<ul>
<li><a href="http://www.consumerfinance.gov/askcfpb/search/?selected_facets=category_exact:mortgages" class="external" target="_blank">Mortgages</a></li>
<li><a href="http://www.consumerfinance.gov/askcfpb/search/?selected_facets=category_exact:mortgages" class="external" target="_blank" rel="noopener noreferrer">Mortgages</a></li>
</ul>
{% endblock %}

Expand Down
10 changes: 5 additions & 5 deletions regulations/templates/regulations/specific/landing_1005.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ <h3 class="list-header">The regulation covers topics such as: </h3>
{% block additional_resources %}
<h4>Ask CFPB </h4>
<ul>
<li><a href="http://www.consumerfinance.gov/askcfpb/search?selected_facets=category_exact:money-transfers" class="external" target="_blank">Money transfers</a></li>
<li><a href="http://www.consumerfinance.gov/askcfpb/search?selected_facets=category_exact:prepaid-cards" class="external" target="_blank">Prepaid cards</a></li>
<li><a href="http://www.consumerfinance.gov/askcfpb/search?selected_facets=category_exact:money-transfers" class="external" target="_blank" rel="noopener noreferrer">Money transfers</a></li>
<li><a href="http://www.consumerfinance.gov/askcfpb/search?selected_facets=category_exact:prepaid-cards" class="external" target="_blank" rel="noopener noreferrer">Prepaid cards</a></li>
</ul>

<h4>Other resources</h4>

<ul>
<li><a href="http://files.consumerfinance.gov/f/201308_cfpb_Intl-Money-Transfer-Small-Entity-Compliance-Guide.pdf" class="pdf" target="_blank">Small entity compliance guide</a></li>
<li><a href="http://files.consumerfinance.gov/f/201305_cfpb_remittance-transfer-rule_summary.pdf" class="pdf" target="_blank">Plain language summary of remittance transfer rule</a></li>
<li><a href="http://www.consumerfinance.gov/remittances-transfer-rule-amendment-to-regulation-e/" class="external" target="_blank">Information about the remittance transfer rule</a></li>
<li><a href="http://files.consumerfinance.gov/f/201308_cfpb_Intl-Money-Transfer-Small-Entity-Compliance-Guide.pdf" class="pdf" target="_blank" rel="noopener noreferrer">Small entity compliance guide</a></li>
<li><a href="http://files.consumerfinance.gov/f/201305_cfpb_remittance-transfer-rule_summary.pdf" class="pdf" target="_blank" rel="noopener noreferrer">Plain language summary of remittance transfer rule</a></li>
<li><a href="http://www.consumerfinance.gov/remittances-transfer-rule-amendment-to-regulation-e/" class="external" target="_blank" rel="noopener noreferrer">Information about the remittance transfer rule</a></li>
</ul>
{% endblock %}
12 changes: 6 additions & 6 deletions regulations/templates/regulations/specific/landing_1010.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ <h3 class="list-header">The regulation covers topics such as: </h3>
<h4>Other resources</h4>

<ul>
<li><a href="http://files.consumerfinance.gov/f/201508_cfpb_bulletin-on-interstate-land-sales-full-disclosure-act-amendment.pdf" class="external" target="_blank">2015 Bulletin on Interstate Land Sales Full Disclosure Act amendment</a></li>
<li><a href="http://files.consumerfinance.gov/f/201107_CFPB_Guidance_ILS-Communications-With-CFPB-Update-July-202012.pdfhttp:/files.consumerfinance.gov/f/201107_CFPB_Guidance_ILS-Communications-With-CFPB-Update-July-202012.pdf" class="external" target="_blank"> 2011 Bulletin on communications with CFPB</a></li>
<li><a href="http://www.consumerfinance.gov/newsroom/cfpb-takes-action-against-property-developers-for-marketing-violations/" class="external" target="_blank">Press release on a May 2015 Enforcement action</a></li>
<li><a href="http://www.consumerfinance.gov/administrativeadjudication/2013-cfpb-0002/" class="external" target="_blank">3D Resorts Bluegrass</a></li>
<li><a href="http://files.consumerfinance.gov/f/201505_cfpb_consent-order-international-land-consultants.pdf" class="external" target="_blank">Interstate Land Consultants</a></li>
<li><a href="http://portal.hud.gov/hudportal/HUD?src=/program_offices/housing/rmra/ils/ilsexemp" class="external" target="_blank">Guidelines for Exemptions Available Under the Interstate Land Sales Full Disclosure Act</a></li>
<li><a href="http://files.consumerfinance.gov/f/201508_cfpb_bulletin-on-interstate-land-sales-full-disclosure-act-amendment.pdf" class="external" target="_blank" rel="noopener noreferrer">2015 Bulletin on Interstate Land Sales Full Disclosure Act amendment</a></li>
<li><a href="http://files.consumerfinance.gov/f/201107_CFPB_Guidance_ILS-Communications-With-CFPB-Update-July-202012.pdfhttp:/files.consumerfinance.gov/f/201107_CFPB_Guidance_ILS-Communications-With-CFPB-Update-July-202012.pdf" class="external" target="_blank" rel="noopener noreferrer">2011 Bulletin on communications with CFPB</a></li>
<li><a href="http://www.consumerfinance.gov/newsroom/cfpb-takes-action-against-property-developers-for-marketing-violations/" class="external" target="_blank" rel="noopener noreferrer">Press release on a May 2015 Enforcement action</a></li>
<li><a href="http://www.consumerfinance.gov/administrativeadjudication/2013-cfpb-0002/" class="external" target="_blank" rel="noopener noreferrer">3D Resorts Bluegrass</a></li>
<li><a href="http://files.consumerfinance.gov/f/201505_cfpb_consent-order-international-land-consultants.pdf" class="external" target="_blank" rel="noopener noreferrer">Interstate Land Consultants</a></li>
<li><a href="http://portal.hud.gov/hudportal/HUD?src=/program_offices/housing/rmra/ils/ilsexemp" class="external" target="_blank" rel="noopener noreferrer">Guidelines for Exemptions Available Under the Interstate Land Sales Full Disclosure Act</a></li>
</ul>
{% endblock %}

Expand Down
Loading

0 comments on commit 092bd0e

Please sign in to comment.