Added browser sessions and protected route support.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 2m48s
CI / Tests (Python 3.13) (push) Successful in 2m49s
CI / Tests (Python 3.14) (push) Successful in 2m43s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 2m48s
CI / Tests (Python 3.13) (push) Successful in 2m49s
CI / Tests (Python 3.14) (push) Successful in 2m43s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="mb-3">{{ title }}</h1>
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<p class="mb-0">{{ body_message }}</p>
|
||||
{% if command_message is none %}
|
||||
<p class="mb-0">Run <code>{{ command_prefix }}connect</code> in chat and try again.</p>
|
||||
{% else %}
|
||||
<p class="mb-0">{{ command_message }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Owlbot Session{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="mb-3">Owlbot Session</h1>
|
||||
{% if session is none %}
|
||||
<div class="alert alert-secondary mb-0" role="status">
|
||||
<p class="mb-0">There is no active Owlbot session for this browser.</p>
|
||||
<p class="mb-0">Run <code>{{ command_prefix }}connect</code> in chat and try again.</p>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-success mb-0" role="status">
|
||||
<p class="mb-0">This browser has an active Owlbot session for <strong>{{ session.user.display_name }}</strong> (<code>{{ session.user.id }}</code>).</p>
|
||||
<p class="mb-0">This Owlbot session expires at <code>{{ session.expires_at.isoformat() }}</code>.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user