{% extends "root.html" %}
{# The off-site link interstitial (src/handlers/out.rs, src/links.rs). No
automatic redirect: the person chooses. Continue only for a signed
destination. #}
{% block content %}
<div class="mx-auto max-w-xl py-8 text-left" data-out>
<div class="card border border-base-300 bg-base-100 shadow-sm">
<div class="card-body gap-4">
<h1 class="card-title"><i class="fas fa-arrow-up-right-from-square"></i> Leaving {{ app_name }}</h1>
<p>You are leaving <strong>{{ app_name }}</strong> @ <span class="font-mono">{{ here }}</span> to go to:</p>
{% if dest %}
<div class="rounded-box bg-base-200 p-3 font-mono text-sm break-all" data-destination>
<span class="opacity-60">{{ dest.before }}</span><strong class="text-base-content text-base">{{ dest.host }}</strong><span class="opacity-60">{{ dest.after }}</span>
</div>
{% if dest.host_unicode %}
<p class="text-sm" data-idn>That address is an internationalised domain name: <strong>{{ dest.host_unicode }}</strong> is written <span class="font-mono">{{ dest.host }}</span>. Look-alike letters from other alphabets can imitate a familiar site; check it's the one you expect.</p>
{% endif %}
{% if dest.has_userinfo %}
<div class="alert alert-warning text-sm"><i class="fas fa-triangle-exclamation"></i><span>The part before “@” is not where this goes. The site is <strong>{{ dest.host }}</strong>.</span></div>
{% endif %}
{% endif %}
{% if signed %}
<p class="text-xs opacity-70">{{ app_name }} doesn't check other sites. Only continue if you trust it.</p>
<div class="card-actions justify-end">
<a href="/" class="btn btn-ghost" onclick="if (history.length > 1) { history.back(); return false; }">Back</a>
<a href="{{ dest.url }}" class="btn btn-primary" rel="nofollow ugc noopener noreferrer" hx-boost="false" data-continue>Continue <i class="fas fa-arrow-right"></i></a>
</div>
{% else %}
<div class="alert alert-error text-sm" role="alert" data-unsigned>
<i class="fas fa-shield-halved"></i>
<span>This link didn't come from a post here, or it was changed after it was posted, so {{ app_name }} won't send you on. If you still want to go, copy the address yourself:</span>
</div>
<p class="rounded-box bg-base-200 p-3 font-mono text-sm break-all select-all">{{ raw }}</p>
<div class="card-actions justify-end">
<a href="/" class="btn btn-ghost" onclick="if (history.length > 1) { history.back(); return false; }">Back</a>
</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
2.6 KiB · text
History
263b40b