#5095 "Share view on the shared stylesheet; breadcrumbs, focus-visible and wide tables". - dashboard/share_view.html loads theme.css and steward.css; its own copy of the old purple palette is gone. Only the read-only frame and the x/y/w/h grid stay inline, written in tokens. HEX_CEILING 75 -> 58. - Breadcrumbs on settings/general, settings/thresholds, the dashboard share page and share-link-created. tests/test_breadcrumbs.py fails on any page extending base.html without a crumbs() trail, unless it is on the named list of section top pages, logged-out and error pages (rule 134). - :focus-visible draws --fs-focus-ring on links, buttons, summaries, inputs and anything with tabindex. - Any card holding a .table scrolls sideways (card:has(table.table)), so a wide table no longer widens the page at phone width; .card-flush scrolls too, main gets min-width:0, and .table-wrap covers a table outside a card. - tests/test_share_view.py renders the share view: shared sheets, no hex colour, escaped name, widgets loading through the share token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.7 KiB
HTML
34 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
{% from "_macros.html" import crumbs %}
|
|
{% block title %}Share Link Created — Steward{% endblock %}
|
|
{% block breadcrumb %}{{ crumbs([("Dashboard", "/"), (dashboard.name, "/d/" ~ dashboard.id), ("Share", "/d/" ~ dashboard.id ~ "/share"), ("Link created", "")]) }}{% endblock %}
|
|
{% block content %}
|
|
<div style="max-width:640px;">
|
|
<h1 class="page-title">Share Link Created</h1>
|
|
|
|
<div class="card" style="border-color:var(--gold);margin-bottom:1rem;">
|
|
<div style="font-size:0.8rem;font-weight:600;color:var(--gold);text-transform:uppercase;letter-spacing:0.06em;margin-bottom:0.75rem;">
|
|
Copy this link now — it cannot be shown again
|
|
</div>
|
|
|
|
<div style="display:flex;gap:0.5rem;align-items:center;">
|
|
<input type="text" id="share-url" value="{{ share_url }}" readonly
|
|
style="flex:1;font-family:ui-monospace,monospace;font-size:0.8rem;background:var(--bg);color:var(--text);">
|
|
<button onclick="navigator.clipboard.writeText(document.getElementById('share-url').value).then(()=>this.textContent='Copied!')"
|
|
class="btn btn-ghost btn-sm" style="white-space:nowrap;">Copy</button>
|
|
</div>
|
|
|
|
<div style="margin-top:0.75rem;font-size:0.82rem;color:var(--text-muted);">
|
|
{% if label %}<strong>Label:</strong> {{ label }} · {% endif %}
|
|
{% if expires_at %}<strong>Expires:</strong> {{ expires_at.strftime("%Y-%m-%d") }}
|
|
{% else %}<strong>Expires:</strong> Never{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div style="display:flex;gap:0.75rem;">
|
|
<a href="/d/{{ dashboard.id }}/share" class="btn btn-ghost">Manage Share Links</a>
|
|
<a href="/d/{{ dashboard.id }}" class="btn btn-ghost">Back to Dashboard</a>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|