From 09a201759bb327a889cf017d5f3c49f8258713c1 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 22 Dec 2018 12:36:49 +0000 Subject: Improve card and user profile formatting --- app/templates/users/user_profile_page.html | 137 +++++++++++++++-------------- 1 file changed, 69 insertions(+), 68 deletions(-) (limited to 'app/templates/users') diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index 1120849..da9f8ca 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -7,72 +7,74 @@ {% 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 - Claim + Is this you? Claim your account now!
{% endif %} -
-

{{ user.display_name }}

- - - - - - - - -
Rank: - {{ user.rank.getTitle() }} -
Accounts: - {% if user.forums_username %} - - Minetest Forum - - {% elif user == current_user %} - No forum account - {% endif %} - - {% if (user.forums_username and user.github_username) or user == current_user %} - | - {% endif %} - - {% if user.github_username %} - GitHub - {% elif user == current_user %} - Link Github - {% endif %} - +
+
+
+

{{ user.display_name }}

+ + + + + + + + + {% if user == current_user %} - 🌎 + + + + {% endif %} - - - {% if user == current_user %} - - - - - {% endif %} -
Rank: + {{ user.rank.getTitle() }} +
Accounts: + {% if user.forums_username %} + + Minetest Forum + + {% elif user == current_user %} + No forum account + {% endif %} + + {% if (user.forums_username and user.github_username) or user == current_user %} + | + {% endif %} + + {% if user.github_username %} + GitHub + {% elif user == current_user %} + Link Github + {% endif %} + + {% if user == current_user %} + 🌎 + {% endif %} +
Password: + {% if user.password %} + Set | Change + {% else %} + Not set | Set + {% endif %} +
Password: - {% if user.password %} - Set | Change - {% else %} - Not set | Set - {% endif %} -
-
+
+
+
{% if form %} {% from "macros/forms.html" import render_field, render_submit_field %} -
-

Edit Details

- -
-
-
+
+
+

Edit Details

+
+ {{ form.hidden_tag() }} {% if user.checkPerm(current_user, "CHANGE_DNAME") %} @@ -89,27 +91,26 @@ {% endif %} {{ render_submit_field(form.submit, tabindex=280) }} -
+
- +
{% endif %} +
{% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(packages, show_author=False) }} {% if topics_to_add %} -
-

Unadded Packages

+
+

Unadded Packages

-
-

- List of your forum topics which do not have a matching package. -

+

+ List of your forum topics which do not have a matching package. +

- {% from "macros/topics.html" import render_topics_table %} - {{ render_topics_table(topics_to_add, show_author=False) }} -
+ {% from "macros/topics.html" import render_topics_table %} + {{ render_topics_table(topics_to_add, show_author=False) }}
{% endif %} -- cgit v1.2.3