Skip to content

Commit

Permalink
Remove the ASK_UPDATED_DATE_LABEL feature flag and template code (#6690)
Browse files Browse the repository at this point in the history
* Remove the ASK_UPDATED_DATE_LABEL feature flag and template code

The flag was created in September 2020 to test new wording for the editing
time stamp on Ask CFPB answer pages. The flag was enabled, in 2020, and the new wording,
"LAST REVIEWED," appears to have been in use since.

* rerun translations to fix notes
  • Loading branch information
higs4281 authored Sep 23, 2021
1 parent ccc5b95 commit 62d4241
Show file tree
Hide file tree
Showing 6 changed files with 2,867 additions and 915 deletions.
3 changes: 0 additions & 3 deletions cfgov/cfgov/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,6 @@
# When enabled, spelling suggestions will appear in Ask CFPB search and
# will be used when the given search term provides no results
"ASK_SEARCH_TYPOS": [],
# Ask CFPB date label
# When enabled, date label will be changed from 'updated' to 'last reviewed'
"ASK_UPDATED_DATE_LABEL": [],
# Beta banner, seen on beta.consumerfinance.gov
# When enabled, a banner appears across the top of the site proclaiming
# "This beta site is a work in progress."
Expand Down
6 changes: 1 addition & 5 deletions cfgov/jinja2/v1/ask-cfpb/answer-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@
block__flush-top
block__sub">
{% if last_edited %}
{% if flag_enabled('ASK_UPDATED_DATE_LABEL') %}
<time datetime='{{ last_edited }}' class="answer-edited-date">{{ _('last reviewed') }}: {{ dt.format_date(last_edited) }}</time>
{% else %}
<time datetime='{{ last_edited }}' class="answer-edited-date">{{ _('updated') }} {{ dt.format_date(last_edited) }}</time>
{% endif %}
<time datetime='{{ last_edited }}' class="answer-edited-date">{{ _('last reviewed') }}: {{ dt.format_date(last_edited) }}</time>
{% endif %}
<h1>
{{ page.question | striptags }}
Expand Down
Binary file modified cfgov/locale/es/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 62d4241

Please sign in to comment.