Readd "Sync with Forums" button to profile picture settings

This commit is contained in:
rubenwardy
2023-09-02 22:34:29 +01:00
parent 459eb02112
commit 8dfd5c407d
3 changed files with 32 additions and 4 deletions

View File

@@ -21,7 +21,14 @@
{% endif %}
</div>
<div class="col">
{% if user.email %}
{% if user.forums_username %}
<form method="post" action="{{ url_for('users.user_check_forums', username=user.username) }}" class="" style="display:inline-block;">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input type="submit" class="btn btn-primary" value="{{ _('Sync with Forums') }}" />
</form>
{% endif %}
{% if user.profile_pic %}
{% elif user.email %}
<a class="btn btn-primary" href="https://en.gravatar.com/">
Gravatar
</a>