The app sends mail by SMTP submission (src/mail.rs, lettre over rustls with the system's CA bundle, ring as reqwest): VISA_SMTP_HOST, _PORT (465), _SECURITY (tls, starttls, or none for a server on this machine), _USER and the password from VISA_SMTP_PASSWORD_FILE or the credential smtp-password; VISA_MAIL_FROM defaults to "Lanna Desk <user>", VISA_MAIL_REPLY_TO is optional. Without VISA_SMTP_HOST mail is off. The settings are checked at start; the password stays out of Debug. The Notifications page (Office) shows the sender, server and connection, sends a test mail to the address given (offered again next time) and shows the mail server's answer; every message sent or failed is logged (notifications, migration 0011). Text messages say "not yet". Tests: a fake SMTP server checks the envelope, Subject and Reply-To, a refused recipient logged as failed, a bad address and mail switched off. 121 unit, 65 integration.
59 lines
3.1 KiB
HTML
59 lines
3.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="robots" content="noindex,nofollow">
|
|
<title>{{ title }} · Lanna Desk</title>
|
|
<script src="/static/theme-init.js?v={{ v }}"></script>
|
|
<link rel="icon" href="/static/favicon.svg?v={{ v }}" type="image/svg+xml">
|
|
<link rel="stylesheet" href="/static/fonts.css?v={{ v }}">
|
|
<link rel="stylesheet" href="/static/app.css?v={{ v }}">
|
|
<script src="/static/app.js?v={{ v }}" defer></script>
|
|
</head>
|
|
<body>
|
|
<header class="top">
|
|
<a class="brand" href="/desk" aria-label="Lanna Desk, the deadlines">
|
|
{% include "_mark.html" %}
|
|
<span class="nm">Lanna Desk</span><span class="sub">Back office</span>
|
|
</a>
|
|
<button type="button" class="ib" id="themeBtn" aria-label="Switch between light and dark" title="Switch between light and dark">◐</button>
|
|
</header>
|
|
<div class="app">
|
|
<aside class="side">
|
|
<nav class="nav" aria-label="Sections">
|
|
<span class="navh">Legal</span>
|
|
<a href="/clients"{% if nav == "clients" %} class="on" aria-current="page"{% endif %}>Clients</a>
|
|
<a href="/contracts"{% if nav == "contracts" %} class="on" aria-current="page"{% endif %}>Contracts</a>
|
|
<a href="/lawyers"{% if nav == "lawyers" %} class="on" aria-current="page"{% endif %}>Lawyers</a>
|
|
<a href="/journal"{% if nav == "journal" %} class="on" aria-current="page"{% endif %}>Journal</a>
|
|
<span class="navh">Visas and stays</span>
|
|
<a href="/desk"{% if nav == "deadlines" %} class="on" aria-current="page"{% endif %}>Deadlines</a>
|
|
<a href="/people"{% if nav == "people" %} class="on" aria-current="page"{% endif %}>People</a>
|
|
<a href="/companies"{% if nav == "companies" %} class="on" aria-current="page"{% endif %}>Companies</a>
|
|
<a href="/agreements"{% if nav == "agreements" %} class="on" aria-current="page"{% endif %}>Agreements</a>
|
|
<span class="navh">Office</span>
|
|
<a href="/activity"{% if nav == "activity" %} class="on" aria-current="page"{% endif %}>Activity</a>
|
|
<a href="/notifications"{% if nav == "notifications" %} class="on" aria-current="page"{% endif %}>Notifications</a>
|
|
</nav>
|
|
<div class="who">
|
|
{% if user.local %}
|
|
<span class="k">Local development</span>
|
|
<b>No login</b>
|
|
<p>VISA_INSECURE_NO_LOGIN is set; this only runs on a loopback address.</p>
|
|
{% else %}
|
|
<span class="k">Signed in as</span>
|
|
<b>{{ user.name }}</b>
|
|
<p>{{ user.login }} at id.cnx.network</p>
|
|
<form method="post" action="/logout" class="inline-form"><input type="hidden" name="csrf" value="{{ csrf }}"><button type="submit" class="btn sm ghost">Sign out</button></form>
|
|
{% endif %}
|
|
</div>
|
|
</aside>
|
|
<main id="main">
|
|
{% block main %}{% endblock %}
|
|
<footer class="ft">Lanna Desk {{ version }}{% if commit %}, commit {% if commit_url %}<a href="{{ commit_url }}">{{ commit }}</a>{% else %}{{ commit }}{% endif %}{% endif %}. Every view and change of a person's record is written to the Activity log. Dates are in Chiang Mai time.</footer>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|