From 63a3b5e8727a0a40acd0c81e1d98eddfa4cb6cae Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 29 May 2018 18:16:05 +0100 Subject: Add claim call to action on unclaimed accounts --- app/templates/flask_user/login.html | 2 +- app/templates/users/claim.html | 3 +-- app/templates/users/user_profile_page.html | 8 ++++++++ 3 files changed, 10 insertions(+), 3 deletions(-) (limited to 'app/templates') diff --git a/app/templates/flask_user/login.html b/app/templates/flask_user/login.html index 29f457d..ba5ce8c 100644 --- a/app/templates/flask_user/login.html +++ b/app/templates/flask_user/login.html @@ -71,7 +71,7 @@ Sign in

New here?

-

Create an account using your forum account.

+

Create an account using your forum account or email.

{%trans%}Claim your account{%endtrans%}
diff --git a/app/templates/users/claim.html b/app/templates/users/claim.html index 4f576e8..f561a89 100644 --- a/app/templates/users/claim.html +++ b/app/templates/users/claim.html @@ -11,8 +11,7 @@ Creating an Account

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.

{% if current_user.is_authenticated %} diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index c1cdb00..304649e 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -6,6 +6,14 @@ {% block content %} +{% if not current_user.is_authenticated and user.rank == user.rank.NOT_JOINED and user.forums_username %} +
+ Is this you? Claim your account now! + + Claim +
+{% endif %} +

{{ user.display_name }}

-- cgit v1.2.3