Skip to content

Commit

Permalink
Fix: return home button (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Aug 15, 2023
2 parents b251c74 + b6d8417 commit 43e61b4
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 8 deletions.
6 changes: 6 additions & 0 deletions benefits/core/templates/core/includes/button--index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% load i18n %}

{% url "core:index" as href %}
{% translate "Return Home" as default_button_text %}

<a href="{{ href }}" class="btn btn-lg btn-primary">{{ button_text | default:default_button_text }}</a>
2 changes: 1 addition & 1 deletion benefits/eligibility/templates/eligibility/unverified.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1 class="h2 text-center">
</div>

<div class="row pt-8 justify-content-center">
<div class="col-lg-3 col-8">{% include "core/includes/button--origin.html" %}</div>
<div class="col-lg-3 col-8">{% include "core/includes/button--index.html" %}</div>
</div>

</div>
Expand Down
7 changes: 5 additions & 2 deletions benefits/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-08-14 21:37+0000\n"
"POT-Creation-Date: 2023-08-15 06:04+0000\n"
"Language: English\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -570,7 +570,10 @@ msgid ""
"will be directed to the beginning of the enrollment process."
msgstr ""

msgid "Service is down."
msgid "Start Here"
msgstr ""

msgid "Service is down"
msgstr ""

msgid "Sorry! Service for this site is down."
Expand Down
7 changes: 5 additions & 2 deletions benefits/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-08-14 21:37+0000\n"
"POT-Creation-Date: 2023-08-15 06:04+0000\n"
"Language: Español\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -699,7 +699,10 @@ msgstr ""
"Para comenzar con Cal-ITP Benefits haga clic en el botón de abajo y será "
"dirigido al comienzo del proceso de inscripción."

msgid "Service is down."
msgid "Start Here"
msgstr "Comenzar aquí"

msgid "Service is down"
msgstr "El servicio está inactivo"

msgid "Sorry! Service for this site is down."
Expand Down
5 changes: 5 additions & 0 deletions benefits/templates/200-user-error.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
{% translate "To get started with Cal-ITP Benefits please click the button below, and you will be directed to the beginning of the enrollment process." %}
</p>
{% endblock paragraphs %}

{% block button %}
{% translate "Start Here" as button_text %}
{% include "core/includes/button--index.html" with button_text=button_text %}
{% endblock button %}
2 changes: 1 addition & 1 deletion benefits/templates/400.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load i18n %}

{% block title %}
{% translate "Service is down." %}
{% translate "Service is down" %}
{% endblock title %}

{% block headline %}
Expand Down
2 changes: 1 addition & 1 deletion benefits/templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load i18n %}

{% block title %}
{% translate "Service is down." %}
{% translate "Service is down" %}
{% endblock title %}

{% block headline %}
Expand Down
6 changes: 5 additions & 1 deletion benefits/templates/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ <h1 class="icon-title h2 text-center">
</div>

<div class="row pt-8 justify-content-center">
<div class="col-lg-3 col-8">{% include "core/includes/button--origin.html" %}</div>
<div class="col-lg-3 col-8">
{% block button %}
{% include "core/includes/button--origin.html" %}
{% endblock button %}
</div>
</div>
</div>
{% endblock main-content %}

0 comments on commit 43e61b4

Please sign in to comment.