Milestone 495 "Email goes to each account, in its own time zone", on the operator's ruling (System 156): notifications go to each user, times in their zone, defaults on, toggled per user or per role. - users.notify_alerts / notify_report (migration 0036): None follows the role's default, notify.<kind>.<role> in settings, all on to start. - mail.pick_recipients: active accounts that want the email and have an address mail can reach (an SSO placeholder like name@oidc is skipped and flagged), each in its own zone with no UTC beside it, then the Also send to addresses in their chosen zone with UTC beside. One copy per address, all over one SMTP connection. - Alerts, the weekly report and the test email (to you, in your zone, plus the typed addresses) send that way. The save-time smtp.tz capture is gone. - Notifications: a role × email table of defaults, who each email reaches and who can't be reached, and Also send to with its own zone, which starts as the first admin's to open the page. - Account page: your address and your two switches. Users: an Emailed column, and an admin sets an account's switches on its page. - The Alerts page counts the accounts it emails. zone_select macro and formatting.zones_by_region shared by Account and Notifications. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
{# account/index.html — the signed-in user's own account (milestone 490): who
|
|
they are, and the time zone every page writes its times in. #}
|
|
{% extends "base.html" %}
|
|
{% from "_macros.html" import page_header, zone_select %}
|
|
{% from "account/_email_choices.html" import email_choices with context %}
|
|
{% block title %}Your account — Steward{% endblock %}
|
|
{% block content %}
|
|
{{ page_header("Your account") }}
|
|
|
|
<p class="page-verdict">
|
|
Signed in as <strong>{{ user.username }}</strong> ({{ user.role.value }}) with {{ source }}
|
|
· times show in <strong>{{ zone_name }}</strong> ({{ zone_label }})
|
|
</p>
|
|
|
|
<form method="post" action="/account/" class="form-page">{{ csrf_field() }}
|
|
<section class="card form-section" aria-labelledby="acct-time">
|
|
<h2 id="acct-time" class="section-title">Time zone</h2>
|
|
{% if error %}<p class="field-error" role="alert">{{ error }}</p>{% endif %}
|
|
<div class="field">
|
|
<label class="field-label" for="acct-tz">Show times in</label>
|
|
{{ zone_select("time_zone", "acct-tz", zone_name, zones) }}
|
|
<span class="field-hint">Every page writes its times in this zone, on a 24-hour clock.</span>
|
|
</div>
|
|
</section>
|
|
<button type="submit" class="btn">Save</button>
|
|
</form>
|
|
|
|
{{ email_choices(user, defaults, "/account/email", email_error) }}
|
|
{% endblock %}
|