Skip to content

Commit

Permalink
Merge pull request #5716 from cfpb/fix-interp-source
Browse files Browse the repository at this point in the history
Make interpretation location a variable in iRegs
  • Loading branch information
niqjohnson committed May 8, 2020
2 parents 824cb0e + 1847788 commit a423d5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cfgov/regulations3k/jinja2/regulations3k/inline_interps.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{#- Part 1004 (Reg D) houses interps in Appendix A instead of Supplement I like every other reg -#}
{%- set interp_location = 'Appendix A' if regulation and regulation.part_number == '1004' else 'Supplement I' -%}

<div data-qa-hook="expandable"
class="o-expandable
o-expandable__padded
Expand Down Expand Up @@ -28,7 +31,7 @@
<div class="o-expandable_content">
{{ contents }}

<p><a href="{{ url }}">See interpretation of {% if section_title %}{{ section_title }}{% else %}this section{% endif %} in Supplement I</a></p>
<p><a href="{{ url }}">See interpretation of {% if section_title %}{{ section_title }}{% else %}this section{% endif %} in {{ interp_location }}</a></p>
</div>

</div>

0 comments on commit a423d5a

Please sign in to comment.