# extends 'admin.html' # block admintitle ${dgettext("acct_mgr", "Account")} # endblock admintitle # block head ${ super() } # endblock head # block adminpanel

${dgettext("acct_mgr", "Manage User Account")}

${ i18n_tag(dgettext('acct_mgr', 'for [1:%(name)s] ([2:%(user)s])'), 'strong', 'em', name=acctmgr.name, user=user) if acctmgr.name else i18n_tag(dgettext('acct_mgr', 'for [1:%(user)s]'), 'strong', user=user) } # if not change_uid_enabled # endif

## Account property editor
${jmacros.form_token_input()} # if len(forms) > 1 # endif
# if active_form == 'uid'
# else
# if acctmgr.name # endif
# if acctmgr.email # endif
# if verify_enabled # endif
# endif
# if not action_aside
# endif
# if approval or user_locked

# if release_time and not approval ${ i18n_tag( dgettext( "acct_mgr", "This account has been locked until %(time)s[1:]and " "even valid login attempts are rejected meanwhile."), 'br', time=release_time) } # elif approval or not release_time ${dgettext('acct_mgr', 'This account has been locked permanently.')} # endif

# endif # if lock_count
# if not lock_count == 0

${ dngettext("acct_mgr", "Time lock condition has been met %(count)s time by now." "Time lock condition has been met %(count)s times by now.", count=lock_count) }

# if not (approval or (user_locked and not release_time))

${ dgettext("acct_mgr", "Therefore after another failed login attempt " "authentication for this account would be retarded " "by %(time)s.", time=pretty_lock_time) }

# endif
# else

${dgettext('acct_mgr', 'Lock condition has not been met yet.')}

# endif
# elif not (approval or lock_count)

${dgettext('acct_mgr', 'No constraints are set for this account.')}

# endif # if user_locked or approval
# endif # if user_store

${ i18n_tag( dgettext("acct_mgr", "Credentials for this user are stored in AuthStore number " "[1:%(order_num)s] (%(store)s)."), 'em', order_num=store_order_num, store=user_store, ) }

# if ignore_auth_case

${ i18n_tag(dgettext('acct_mgr', 'Username matching is set to [1:not case-sensitive].'), 'strong') }

# else

${ i18n_tag(dgettext('acct_mgr', 'Username matching is set to [1:case-sensitive].'), 'strong') }

# endif
# endif # if not (approval or user_store)

${ i18n_tag(dgettext("acct_mgr", "No readable store provides credentials for this user, so the user may" " not get authenticated and access to this [1:account might be " "effectively blocked]."), 'em') }

# endif # if acctmgr.email

${ dgettext("acct_mgr", "Current email address: <%(email)s>", email=acctmgr.email) }

# if verification # if email_verified

${ dgettext('acct_mgr', 'This address has been verified successfully.') }

# elif not email_verified and email_verification_token

${ i18n_tag(dgettext("acct_mgr", "Verification is pending [1:(token: %(token)s)]"), tag.span(class_='hint'), token=email_verification_token) }

# else

${ dgettext('acct_mgr', 'This address has not been verified yet.') }

# endif # endif
# else

${ dgettext('acct_mgr', 'No email address is registered for this account.') }

# endif

${ dgettext('acct_mgr', 'Last login: %(time)s', time=format_datetime(last_visit)) if last_visit else dgettext('acct_mgr', 'The user has not logged in before.') }

# if attempts_count

${ dgettext("acct_mgr", "Total failed attempts: %(count)s", count=attempts_count) }

${ dgettext('acct_mgr', 'Table: Last failed login attempts log view') }

# for attempt in attempts # endfor
${dgettext('acct_mgr', 'IP address')} ${dgettext('acct_mgr', 'Log time')}
${attempt.ipnr} ${format_datetime(attempt.time)}
# if not user_locked
# endif
# else

${ dgettext('acct_mgr', 'There is currently no failed login attempt logged.') }

# endif
# endblock adminpanel