diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-12-22 12:36:49 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-12-22 12:38:03 +0000 |
| commit | 09a201759bb327a889cf017d5f3c49f8258713c1 (patch) | |
| tree | bd1de64bb9040f540caa45ca4c60288f32961835 /app/templates/users | |
| parent | 5dcff01436bf81cfbff8085fbae4692ec57a9fdf (diff) | |
| download | cheatdb-09a201759bb327a889cf017d5f3c49f8258713c1.tar.xz | |
Improve card and user profile formatting
Diffstat (limited to 'app/templates/users')
| -rw-r--r-- | app/templates/users/user_profile_page.html | 137 |
1 files changed, 69 insertions, 68 deletions
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 %} -<div class="box box_grey alert alert-info"> - Is this you? Claim your account now! +<div class="alert alert-info alert alert-info"> + <a class="float-right btn btn-default btn-sm" + href="{{ url_for('user_claim_page', username=user.forums_username) }}">Claim</a> - <a class="alert_right button" href="{{ url_for('user_claim_page', username=user.forums_username) }}">Claim</a> + Is this you? Claim your account now! </div> {% endif %} -<div class="box box_grey"> - <h2>{{ user.display_name }}</h2> - - <table class="box-body"> - <tr> - <td>Rank:</td> - <td> - {{ user.rank.getTitle() }} - </td> - </tr> - <tr> - <td>Accounts:</td> - <td> - {% if user.forums_username %} - <a href="https://forum.minetest.net/memberlist.php?mode=viewprofile&un={{ user.forums_username }}"> - Minetest Forum - </a> - {% 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 %} - <a href="https://github.com/{{ user.github_username }}">GitHub</a> - {% elif user == current_user %} - <a href="{{ url_for('github_signin_page') }}">Link Github</a> - {% endif %} - +<div class="row mb-3"> + <div class="col-sm-6"> + <div class="card"> + <h2 class="card-header">{{ user.display_name }}</h2> + <table class="table"> + <tr> + <td>Rank:</td> + <td> + {{ user.rank.getTitle() }} + </td> + </tr> + <tr> + <td>Accounts:</td> + <td> + {% if user.forums_username %} + <a href="https://forum.minetest.net/memberlist.php?mode=viewprofile&un={{ user.forums_username }}"> + Minetest Forum + </a> + {% 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 %} + <a href="https://github.com/{{ user.github_username }}">GitHub</a> + {% elif user == current_user %} + <a href="{{ url_for('github_signin_page') }}">Link Github</a> + {% endif %} + + {% if user == current_user %} + 🌎 + {% endif %} + </td> + </tr> {% if user == current_user %} - 🌎 + <tr> + <td>Password:</td> + <td> + {% if user.password %} + Set | <a href="{{ url_for('user.change_password') }}">Change</a> + {% else %} + Not set | <a href="{{ url_for('set_password_page') }}">Set</a> + {% endif %} + </td> + </tr> {% endif %} - </td> - </tr> - {% if user == current_user %} - <tr> - <td>Password:</td> - <td> - {% if user.password %} - Set | <a href="{{ url_for('user.change_password') }}">Change</a> - {% else %} - Not set | <a href="{{ url_for('set_password_page') }}">Set</a> - {% endif %} - </td> - </tr> - {% endif %} - </table> -</div> + </table> + </div> + </div> {% if form %} {% from "macros/forms.html" import render_field, render_submit_field %} - <div class="box box_grey"> - <h2>Edit Details</h2> - - <form action="" method="POST" class="form box-body" role="form"> - <div class="row"> - <div class="col-sm-6 col-md-5 col-lg-4"> + <div class="col-sm-6"> + <div class="card"> + <h2 class="card-header">Edit Details</h2> + <div class="card-body"> + <form action="" method="POST" class="form box-body" role="form"> {{ form.hidden_tag() }} {% if user.checkPerm(current_user, "CHANGE_DNAME") %} @@ -89,27 +91,26 @@ {% endif %} {{ render_submit_field(form.submit, tabindex=280) }} - </div> + </form> </div> - </form> + </div> </div> {% endif %} +</div> {% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(packages, show_author=False) }} {% if topics_to_add %} - <div class="box box_grey"> - <h2>Unadded Packages</h2> + <div class="card mt-3"> + <h2 class="card-header">Unadded Packages</h2> - <div class="box-body"> - <p> - List of your forum topics which do not have a matching package. - </p> + <p class="card-body"> + List of your forum topics which do not have a matching package. + </p> - {% from "macros/topics.html" import render_topics_table %} - {{ render_topics_table(topics_to_add, show_author=False) }} - </div> + {% from "macros/topics.html" import render_topics_table %} + {{ render_topics_table(topics_to_add, show_author=False) }} </div> {% endif %} |
