change moving account links to account page

This commit is contained in:
mein Name 2025-02-09 12:51:49 -05:00 committed by Henri Dickson
parent f45d9f41d3
commit d9d2405a8a
4 changed files with 24 additions and 9 deletions

View file

@ -22,7 +22,8 @@
{% blocktrans %}You may have visited an incorrect URL, or the content you are looking for has been deleted by the author.{% endblocktrans %}
<br>
{% blocktrans %}If you believe this is our mistake, please contact us through the link at the bottom of the page.{% endblocktrans %}
<a href="{% url 'common:home' %}" class="button">{trans "Go to Home"}</a>
<br>
<a href="{% url 'common:home' %}" class="button">{% trans "Go to Home" %}</a>
</article>
</main>
{% include "_footer.html" %}

@ -1 +1 @@
Subproject commit 21fd348a2c54f8769adb7f4d6d8782ebdd3a25bc
Subproject commit 8b1fe6d2556c6201f77de05b0a58fe7e2e5105d2

View file

@ -298,6 +298,27 @@
</details>
</article>
{% if allow_any_site %}
<article>
<details>
<summary>{% trans 'Migrate Account' %}</summary>
<p>
{% if not user.email_account %}
<i class="fa-solid fa-triangle-exclamation"></i>
{% trans "Linking an email to your account is highly recommended before migrating from another Fediverse instance." %}
{% endif %}
<div>
<form action="/@{{ request.user.identity.handle }}/settings/migrate_in/">
<button>{% trans "Migrate from anther instance to here" %}</button>
</form>
</p>
<p>
<form action="/@{{ request.user.identity.handle }}/settings/migrate_out/">
<button>{% trans "Migrate to another instance" %}</button>
</form>
</div>
</p>
</details>
</article>
<article>
<details>
<summary>{% trans 'Delete Account' %}</summary>

View file

@ -249,13 +249,6 @@
<p>
<a href="/@{{ request.user.identity.handle }}/settings/tokens/">{% trans "View authorized applications" %}</a>
</p>
<p>
{% if user.email_account %}
<a href="/@{{ request.user.identity.handle }}/settings/migrate_in/">{% trans "Migrate account" %}</a>
{% else %}
<a href="{% url 'users:info' %}">{% trans "Link an email so that you can migrate followers from other Fediverse instances." %}</a>
{% endif %}
</p>
</details>
</article>
</div>