diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-12-22 20:13:43 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-12-22 20:25:22 +0000 |
| commit | c551201f792aa288a49c986aab264f4692e3b478 (patch) | |
| tree | d894bc68c7a0b06b642e7eceb7032fc5a1115420 /app/templates/users | |
| parent | a21a5c24d8baa2f14000ca64c10ea315fab708bd (diff) | |
| download | cheatdb-c551201f792aa288a49c986aab264f4692e3b478.tar.xz | |
Improve thread styling
Diffstat (limited to 'app/templates/users')
| -rw-r--r-- | app/templates/users/user_profile_page.html | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index da9f8ca..8949189 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -66,13 +66,40 @@ {% endif %} </table> </div> + + <div class="row mt-4"> + <div class="col-md-2"> + <img class="img-responsive user-photo img-thumbnail img-thumbnail-1" src="{{ (user.email or '') | gravatar }}"> + </div> + <div class="col"> + <div class="card"> + <div class="card-header"> + Profile Picture + </div> + <div class="card-body"> + <p>ContentDB uses Gravatar for profile pictures</p> + {% if user == current_user %} + {% if user.email %} + <a class="btn btn-primary" href="https://en.gravatar.com/"> + Gravatar + </a> + {% else %} + <p> + Please add an email to your profile. + </p> + {% endif %} + {% endif %} + </div> + </div> + </div> + </div> </div> {% if form %} {% from "macros/forms.html" import render_field, render_submit_field %} <div class="col-sm-6"> <div class="card"> - <h2 class="card-header">Edit Details</h2> + <div class="card-header">Edit Details</div> <div class="card-body"> <form action="" method="POST" class="form box-body" role="form"> {{ form.hidden_tag() }} |
