Ekaropolus 0eb2b393f2
All checks were successful
continuous-integration/drone/push Build is passing
SAMI Functionality add
2025-09-16 16:18:45 -06:00

36 lines
1.4 KiB
HTML

{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ title|default:"SAMI · Card" }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if chart_url %}<meta property="og:image" content="{{ chart_url }}">{% endif %}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body { background:#0b1220; color:#e5e7eb; }
.card { background:#111827; border-color:#1f2937; }
.thumb { max-width:100%; border-radius:.5rem; box-shadow:0 0.5rem 1.25rem rgba(0,0,0,.35); }
.muted { color:#9ca3af; }
.pill { display:inline-block; padding:.15rem .5rem; border-radius:999px; background:#1f2937; margin-right:.25rem; }
</style>
</head>
<body class="py-4">
<div class="container">
<div class="card shadow-lg">
<div class="card-body">
<h3 class="mb-1">SAMI <span class="muted">· {{ indicator }}</span></h3>
<div class="mb-3">
{% if beta is not None %}<span class="pill">β {{ beta|floatformat:3 }}</span>{% endif %}
{% if r2 is not None %}<span class="pill">R² {{ r2|floatformat:3 }}</span>{% endif %}
{% if n %}<span class="pill">n = {{ n }}</span>{% endif %}
</div>
{% if chart_url %}
<img class="thumb" src="{{ chart_url }}" alt="SAMI chart">
{% endif %}
</div>
</div>
</div>
</body>
</html>