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="alert alert-info alert alert-info">
11 <a class="float-right btn btn-default btn-sm"
12 href="{{ url_for('user_claim_page', username=user.forums_username) }}">Claim</a>
14 Is this you? Claim your account now!
18 <div class="row mb-3">
19 <div class="col-sm-6">
21 <h2 class="card-header">{{ user.display_name }}</h2>
26 {{ user.rank.getTitle() }}
32 {% if user.forums_username %}
33 <a href="https://forum.minetest.net/memberlist.php?mode=viewprofile&un={{ user.forums_username }}">
36 {% elif user == current_user %}
40 {% if (user.forums_username and user.github_username) or user == current_user %}
44 {% if user.github_username %}
45 <a href="https://github.com/{{ user.github_username }}">GitHub</a>
46 {% elif user == current_user %}
47 <a href="{{ url_for('github_signin_page') }}">Link Github</a>
50 {% if user == current_user %}
55 {% if user == current_user %}
59 {% if user.password %}
60 Set | <a href="{{ url_for('user.change_password') }}">Change</a>
62 Not set | <a href="{{ url_for('set_password_page') }}">Set</a>
70 <div class="row mt-4">
71 <div class="col-md-2">
72 <img class="img-responsive user-photo img-thumbnail img-thumbnail-1" src="{{ (user.email or '') | gravatar }}">
76 <div class="card-header">
79 <div class="card-body">
80 <p>ContentDB uses Gravatar for profile pictures</p>
81 {% if user == current_user %}
83 <a class="btn btn-primary" href="https://en.gravatar.com/">
88 Please add an email to your profile.
99 {% from "macros/forms.html" import render_field, render_submit_field %}
100 <div class="col-sm-6">
102 <div class="card-header">Edit Details</div>
103 <div class="card-body">
104 <form action="" method="POST" class="form box-body" role="form">
105 {{ form.hidden_tag() }}
107 {% if user.checkPerm(current_user, "CHANGE_DNAME") %}
108 {{ render_field(form.display_name, tabindex=230) }}
111 {% if user.checkPerm(current_user, "CHANGE_EMAIL") %}
112 {{ render_field(form.email, tabindex=240) }}
113 <i>We'll send you an email to verify it if changed.</i>
116 {% if user.checkPerm(current_user, "CHANGE_RANK") %}
117 {{ render_field(form.rank, tabindex=250) }}
120 {{ render_submit_field(form.submit, tabindex=280) }}
128 {% from "macros/packagegridtile.html" import render_pkggrid %}
129 {{ render_pkggrid(packages, show_author=False) }}
131 {% if topics_to_add %}
132 <div class="card mt-3">
133 <a name="unadded-packages"></a>
134 <h2 class="card-header">Unadded Packages</h2>
136 <p class="card-body">
137 List of your forum topics which do not have a matching package.
138 Topics with a strikethrough have beened marked as discarded.
141 {% from "macros/topics.html" import render_topics_table %}
142 {{ render_topics_table(topics_to_add, show_author=False, show_discard=True, current_user=current_user) }}
149 {% block scriptextra %}
151 var csrf_token = "{{ csrf_token() }}";
153 <script src="/static/topic_discard.js"></script>