Skip to content

Commit 757d2f9

Browse files
Remove Particles from nav bar
Update password reset flow to flash an explicit message including the submitted email and move the success flash/redirect outside the inner block. Nihongo module: change CTA text from "Try it out!" to "Open Demo" and remove the "Particles" nav link from the template. Style tweaks in module-home.css: switch color var to --colour-status-neutral and set font-weight to 500.
1 parent 5bca131 commit 757d2f9

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

lingual/main/routes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ def reset():
338338
current_app.logger.error(traceback.format_exc()) # Attach traceback
339339
flash("An error occurred while attempting to send the reset email. Please try again later.", "error")
340340
return redirect(url_for('main.reset'))
341-
else:
342-
# Generic success message (don't reveal if user exists)
343-
# This prevents "email enumeration" attacks.
344-
flash("If an account with that email exists, a reset link has been sent.", "info")
345-
return redirect(url_for('main.login'))
341+
342+
# Generic success message (don't reveal if user exists)
343+
# This prevents "email enumeration" attacks.
344+
flash(f"A reset link has been sent to {email}.", "info")
345+
return redirect(url_for('main.login'))
346346

347347
else:
348348
# Validation failed: flash errors

lingual/modules/nihongo/data/particles/map.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "Japanese Particles",
3-
"description": "This page is still under development. Tap a particle to open quick notes and examples.",
3+
"description": "WARNING: This page is still under development. As a result, information may be incomplete, unformatted, or inaccurate.\nTap a particle to open quick notes and examples.",
44
"categories": [
55
{
66
"name": "Main",

lingual/modules/nihongo/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def home():
9595
body="Particle Cheat Sheet!",
9696
buttons=[
9797
ItemBox.BoxButton(
98-
text="Try it out!",
98+
text="Open Demo",
9999
link=url_for('nihongo.particles')
100100
)
101101
]

lingual/modules/nihongo/templates/nihongo-template.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
{% block nav_links %}
3131
<a href="{{ url_for('nihongo.grammar') }}">Grammar</a>
3232
<a href="{{ url_for('nihongo.kanji') }}">Kanji</a>
33-
<a href="{{ url_for('nihongo.particles') }}">Particles</a>
3433
<a href="{{ url_for('nihongo.quiz') }}">Quiz</a>
3534
{% endblock %}
3635

lingual/static/styles/module-home.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@
7373
background: var(--bg-surface-muted);
7474
border-radius: var(--radius-medium);
7575
line-height: var(--line-height-body);
76-
color: var(--colour-secondary);
76+
color: var(--colour-status-neutral);
77+
font-weight: 500;
7778
font-size: var(--font-size-body);
7879
}
7980

0 commit comments

Comments
 (0)