From 9d7c3976c2d111eda7a3727d918002a29980fede Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sat, 6 Jan 2024 15:30:50 +1300 Subject: [PATCH] community breadcrumb --- app/auth/routes.py | 6 +++--- app/templates/community/community.html | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/auth/routes.py b/app/auth/routes.py index 5084cb03..d57ac52e 100644 --- a/app/auth/routes.py +++ b/app/auth/routes.py @@ -121,12 +121,12 @@ def reset_password_request(): if form.validate_on_submit(): if form.email.data.lower().startswith('postmaster@') or form.email.data.lower().startswith('abuse@') or \ form.email.data.lower().startswith('noc@'): - flash(_('Sorry, you cannot use that email address'), 'error') + flash(_('Sorry, you cannot use that email address.'), 'error') else: user = User.query.filter_by(email=form.email.data).first() if user: send_password_reset_email(user) - flash(_('Check your email for the instructions to reset your password')) + flash(_('Check your email for a link to reset your password.')) return redirect(url_for('auth.login')) else: flash(_('No account with that email address exists'), 'warning') @@ -145,7 +145,7 @@ def reset_password(token): if form.validate_on_submit(): user.set_password(form.password.data) db.session.commit() - flash(_('Your password has been reset.')) + flash(_('Your password has been reset. Please use it to log in with user name of %(name)s.', name=user.user_name)) return redirect(url_for('auth.login')) return render_template('auth/reset_password.html', form=form) diff --git a/app/templates/community/community.html b/app/templates/community/community.html index 7df36d49..0e73defe 100644 --- a/app/templates/community/community.html +++ b/app/templates/community/community.html @@ -16,8 +16,15 @@

{{ community.title }}

- {% elif community.icon_image() != '' %} + {% elif community.icon_id %}
+