diff options
| author | Brice Maron <brice@bmaron.net> | 2019-09-16 22:00:29 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2019-09-18 21:27:52 +0200 |
| commit | b82d07c3eb4fc63b3fa0b5afbd2b8ac436f6a281 (patch) | |
| tree | e45850b5b1c626917d70936f3ba85e52e4bfed38 /ihatemoney | |
| parent | bef973d85e3a81979a003a9bac8d17043af7a82d (diff) | |
| download | ihatemoney-mirror-b82d07c3eb4fc63b3fa0b5afbd2b8ac436f6a281.zip ihatemoney-mirror-b82d07c3eb4fc63b3fa0b5afbd2b8ac436f6a281.tar.gz ihatemoney-mirror-b82d07c3eb4fc63b3fa0b5afbd2b8ac436f6a281.tar.bz2 | |
Move translations in template and translate link
Diffstat (limited to 'ihatemoney')
| -rw-r--r-- | ihatemoney/templates/password_reminder_sent.html | 8 | ||||
| -rw-r--r-- | ihatemoney/web.py | 7 |
2 files changed, 5 insertions, 10 deletions
diff --git a/ihatemoney/templates/password_reminder_sent.html b/ihatemoney/templates/password_reminder_sent.html index e424c54..578a7ef 100644 --- a/ihatemoney/templates/password_reminder_sent.html +++ b/ihatemoney/templates/password_reminder_sent.html @@ -1,10 +1,10 @@ {% extends "layout.html" %} {% block content %} -<h2>{{ _(title) }}</h2> +<h2>{{ _("Password reminder") }}</h2> <p> - {{message}} + {{ _("A link to reset your password has been sent to you, please check your emails.") }} </p> -<a class="btn btn-primary" href="{{ url_for('.home')}}">Return to home page</a> - +<a class="btn btn-primary" href="{{ url_for('.home')}}">{{ _('Return to home page') }}</a> + {% endblock %} diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 52b8ed2..3e74362 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -284,12 +284,7 @@ def remind_password(): @main.route("/password-reminder-sent", methods=["GET"]) def password_reminder_sent(): - message = "A link to reset your password has been sent to you, please check your emails." - return render_template( - "password_reminder_sent.html", - title="Password reminder", - message=message - ) + return render_template("password_reminder_sent.html") @main.route('/reset-password', methods=['GET', 'POST']) |
