1 {% extends "base.html" %}
9 {% if not current_user.is_authenticated and user.rank == user.rank.NOT_JOINED and user.forums_username %}
10 <div class="box box_grey alert alert-info">
11 Is this you? Claim your account now!
13 <a class="alert_right button" href="{{ url_for('user_claim_page', username=user.forums_username) }}">Claim</a>
17 <div class="box box_grey">
18 <h2>{{ user.display_name }}</h2>
20 <table class="box-body">
24 {{ user.rank.getTitle() }}
30 {% if user.forums_username %}
31 <a href="https://forum.minetest.net/memberlist.php?mode=viewprofile&un={{ user.forums_username }}">
34 {% elif user == current_user %}
35 <a href="">Link Forums Account</a>
38 {% if (user.forums_username and user.github_username) or user == current_user %}
42 {% if user.github_username %}
43 <a href="https://github.com/{{ user.github_username }}">GitHub</a>
44 {% elif user == current_user %}
45 <a href="{{ url_for('github_signin_page') }}">Link Github</a>
48 {% if user == current_user %}
53 {% if user == current_user %}
57 {% if user.password %}
58 Set | <a href="{{ url_for('user.change_password') }}">Change</a>
60 Not set | <a href="{{ url_for('set_password_page') }}">Set</a>
68 <div class="box box_grey">
70 <div class="box-body">
72 {% for p in packages %}
73 <li><a href="{{ p.getDetailsURL() }}">
74 {{ p.title }} by {{ p.author.display_name }}
77 <li><i>No packages available</i></ul>
80 {% if user == current_user or user.checkPerm(current_user, "CHANGE_AUTHOR") %}
81 <p><a class="button" href="{{ url_for('create_edit_package_page', author=user.username) }}">
89 {% from "macros/forms.html" import render_field, render_submit_field %}
90 <div class="box box_grey">
93 <form action="" method="POST" class="form box-body" role="form">
95 <div class="col-sm-6 col-md-5 col-lg-4">
96 {{ form.hidden_tag() }}
98 {% if user.checkPerm(current_user, "CHANGE_DNAME") %}
99 {{ render_field(form.display_name, tabindex=230) }}
102 {% if user.checkPerm(current_user, "CHANGE_EMAIL") %}
103 {{ render_field(form.email, tabindex=240) }}
104 <i>We'll send you an email to verify it if changed.</i>
107 {% if user.checkPerm(current_user, "CHANGE_RANK") %}
108 {{ render_field(form.rank, tabindex=250) }}
111 {{ render_submit_field(form.submit, tabindex=280) }}