Add claim call to action on unclaimed accounts

This commit is contained in:
rubenwardy
2018-05-29 18:16:05 +01:00
parent 6353ac29e9
commit 63a3b5e872
6 changed files with 16 additions and 5 deletions

View File

@@ -11,8 +11,7 @@ Creating an Account
<div class="box-body">
<p>
If you have a forum account, you'll need to prove that you own it
to get an account on ContentDB. You don't need a forum account to sign
up however.
to get an account on ContentDB.
</p>
{% if current_user.is_authenticated %}

View File

@@ -6,6 +6,14 @@
{% block content %}
{% if not current_user.is_authenticated and user.rank == user.rank.NOT_JOINED and user.forums_username %}
<div class="box box_grey alert alert-info">
Is this you? Claim your account now!
<a class="alert_right button" href="{{ url_for('user_claim_page', username=user.forums_username) }}">Claim</a>
</div>
{% endif %}
<div class="box box_grey">
<h2>{{ user.display_name }}</h2>