* build(deps): bump askama from 0.12.1 to 0.15.4 Bumps [askama](https://github.com/askama-rs/askama) from 0.12.1 to 0.15.4. - [Release notes](https://github.com/askama-rs/askama/releases) - [Commits](https://github.com/askama-rs/askama/compare/0.12.1...v0.15.4) --- updated-dependencies: - dependency-name: askama dependency-version: 0.15.4 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix(deps): adapt templates and tests for askama 0.15 - Migrate macro calls from {% call %} to {{ }} expression syntax (134 occurrences) - Update test assertion for askama 0.15's numeric HTML entity encoding (& vs &) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Seager <jon@sgrs.uk>
33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
{% extends "base.html" %} {% import "partials/icons.html" as icons %}
|
|
{% block title %}Brewlog · CLI Authentication{% endblock %}
|
|
{% block content %}
|
|
<div class="mx-auto max-w-md">
|
|
<div class="rounded-lg border bg-surface p-6">
|
|
{% if token.is_some() %}
|
|
<div class="flex flex-col items-center text-center gap-3">
|
|
{{ icons::check_circle("h-10 w-10 text-emerald-600 dark:text-emerald-400") }}
|
|
<h1 class="text-2xl font-semibold text-accent">CLI Authenticated</h1>
|
|
<p class="text-sm text-text-secondary">
|
|
Your CLI has been authenticated successfully. You can close this window and return to the terminal.
|
|
</p>
|
|
</div>
|
|
{% else if error.is_some() %}
|
|
<div class="flex flex-col items-center text-center gap-3">
|
|
{{ icons::x_circle("h-10 w-10 text-red-600 dark:text-red-400") }}
|
|
<h1 class="text-2xl font-semibold text-accent">Authentication Failed</h1>
|
|
<div class="w-full rounded-md bg-red-100 border border-red-300 p-3 text-sm text-red-800 dark:bg-red-950/40 dark:border-red-800 dark:text-red-300">
|
|
{{ error.as_ref().unwrap() }}
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="flex flex-col items-center text-center gap-3">
|
|
{{ icons::spinner("h-10 w-10") }}
|
|
<h1 class="text-2xl font-semibold text-accent">CLI Authentication</h1>
|
|
<p class="text-sm text-text-secondary">
|
|
Processing authentication…
|
|
</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|