Skip to content

Commit

Permalink
list the primary address first in /~/emails/
Browse files Browse the repository at this point in the history
closes #2325
  • Loading branch information
Changaco committed Mar 21, 2024
1 parent 99ec212 commit 1ee74a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions www/%username/emails/index.spt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ if not participant.email_lang:
title = participant.username
subhead = _("Email settings")
emails = participant.get_emails()
emails.sort(key=lambda e: (
-(e.address == participant.email),
e.id
))
email_locale = website.locales.get(participant.email_lang) or website.locales['en']

[---] text/html
Expand Down

0 comments on commit 1ee74a3

Please sign in to comment.