mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
fix: Don't show a broken back link when removing a device
This commit is contained in:
1 parent
59b1652f4a
commit
7997cda678
2 files changed
+5
-2
No files matched your search
@@ -0,0 +1 @@
|
||||
Removing a device from the web UI will no longer show a "Back" link pointing to a 404. Contributed by @ginger.
|
||||
@@ -6,9 +6,9 @@ Remove a device
|
||||
|
||||
{%- block content -%}
|
||||
<div class="panel">
|
||||
<h1>Remove a device <a class="back" href=".">Back</a></h1>
|
||||
{% match body %}
|
||||
{% when RemoveDeviceBody::Form { device_card, last_device } %}
|
||||
<h1>Remove a device <a class="back" href=".">Back</a></h1>
|
||||
{{ device_card }}
|
||||
<p>
|
||||
Do you want to remove this device from your account? It will be signed out immediately.
|
||||
@@ -29,8 +29,10 @@ Remove a device
|
||||
</form>
|
||||
<script src="{{ crate::ROUTE_PREFIX }}/resources/slowdown.js" nonce="{{ context.csp_nonce }}"></script>
|
||||
{% when RemoveDeviceBody::Success %}
|
||||
<h1>Remove a device</h1>
|
||||
<p>
|
||||
The device has been signed out successfully.
|
||||
The device has been removed successfully.
|
||||
<a href="{{ crate::ROUTE_PREFIX }}/account/">Back to account settings</a>
|
||||
</p>
|
||||
{% endmatch %}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user