mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
74 lines
2.0 KiB
HTML
74 lines
2.0 KiB
HTML
{% extends "users/settings_base.html" %}
|
|
|
|
{% block title %}
|
|
{{ _("Account and Security | %(username)s", username=user.username) }}
|
|
{% endblock %}
|
|
|
|
{% block pane %}
|
|
<h2 class="mt-0">{{ _("Account and Security") }}</h2>
|
|
|
|
<h3>{{ _("Password") }}</h3>
|
|
{% if user == current_user %}
|
|
{% if user.password %}
|
|
<a class="btn btn-primary" href="{{ url_for('users.change_password') }}">Change Password</a>
|
|
{% else %}
|
|
<a class="btn btn-primary" href="{{ url_for('users.set_password') }}">Set Password</a>
|
|
{% endif %}
|
|
{% else %}
|
|
{% if user.password %}
|
|
<p>{{ _("Has password") }}</p>
|
|
{% else %}
|
|
<p class="text-danger">{{ _("Doesn't have password") }}</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<h3>{{ _("Linked Accounts") }}</h3>
|
|
<table class="table">
|
|
<tr>
|
|
<td>Forums</td>
|
|
<td>
|
|
{% if user.forums_username %}
|
|
<a href="https://forum.minetest.net/memberlist.php?mode=viewprofile&un={{ user.forums_username }}">
|
|
Connected
|
|
</a>
|
|
{% else %}
|
|
Please <a href="https://forum.minetest.net/ucp.php?i=pm&mode=compose&u=2051">PM rubenwardy</a>
|
|
on the forums to link your account.
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>GitHub</td>
|
|
<td>
|
|
{% if user.github_username %}
|
|
<p>
|
|
<a href="https://github.com/{{ user.github_username }}">Connected</a>
|
|
</p>
|
|
|
|
{% if user == current_user %}
|
|
<p class="mb-0">
|
|
<a href="{{ url_for('github.view_permissions') }}">View ContentDB's GitHub Permissions</a>
|
|
</p>
|
|
{% endif %}
|
|
{% elif user == current_user %}
|
|
<a href="{{ url_for('github.start') }}">Link Github</a>
|
|
{% else %}
|
|
None
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>{{ _("Account Deletion and Deactivation") }}</h3>
|
|
|
|
{% if current_user.rank.atLeast(current_user.rank.ADMIN) %}
|
|
<a class="btn btn-danger" href="{{ url_for('users.delete', username=user.username) }}">Delete or Deactivate</a>
|
|
{% else %}
|
|
<p>
|
|
{{ _("Account Deletion and Deactivation isn't available to users yet.") }}
|
|
{{ _("Please contact the admin.") }}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|