Every page sat in the 40rem reading column, so the admin wrapper's 60rem never applied and the notes table, which can't shrink that far, ran past the header's right edge. Admin pages now set a 60rem frame for header, content and footer; post previews wrap, and tables scroll sideways on narrow screens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.2 KiB
HTML
47 lines
1.2 KiB
HTML
{% extends "admin/base.html" %}
|
|
|
|
{% block title %}Connected Apps - StarPunk Admin{% endblock %}
|
|
|
|
{% block admin_content %}
|
|
<div class="tokens-admin">
|
|
<h2>Connected Apps</h2>
|
|
<p>Micropub apps you have approved. Revoke any you no longer use.</p>
|
|
|
|
{% if tokens %}
|
|
<div class="table-scroll">
|
|
<table class="note-table">
|
|
<thead>
|
|
<tr>
|
|
<th>App</th>
|
|
<th>Scope</th>
|
|
<th>Approved</th>
|
|
<th>Last used</th>
|
|
<th>Expires</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for t in tokens %}
|
|
<tr>
|
|
<td>{{ t.client_id }}</td>
|
|
<td>{{ t.scope }}</td>
|
|
<td>{{ t.created_at }}</td>
|
|
<td>{{ t.last_used_at or "never" }}</td>
|
|
<td>{{ t.expires_at }}</td>
|
|
<td>
|
|
<form method="POST" action="{{ url_for('admin.revoke_token', token_id=t.id) }}">
|
|
<button type="submit" class="button button-danger"
|
|
onclick="return confirm('Revoke this app\'s access?')">Revoke</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% else %}
|
|
<p>No apps connected.</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|