Browse Source

display info about hashed email on profile page

master
Fr3deric 5 years ago
parent
commit
7bb56630cb
  1. 10
      bam/templates/bam/profile.html

10
bam/templates/bam/profile.html

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
dd {
margin-left: 0px;
}
#email-unset {
.profile-value-meta {
font-style: italic;
}
</style>
@ -21,14 +21,20 @@ @@ -21,14 +21,20 @@
<dt>Username</dt>
<dd>{{ user.username }}</dd>
{% if user.first_name %}
<dt>First name</dt>
<dd>{{ user.first_name }}</dd>
{% endif %}
{% if user.last_name %}
<dt>Last name</dt>
<dd>{{ user.last_name }}</dd>
{% endif %}
<dt>Email address</dt>
<dd>{% if user.email %}{{ user.email }}{% else %}<span id="email-unset">unset</span>{% endif %}</dd>
<dd>{% if user.email %}{{ user.email }}{% else %}<span id="profile-value-meta">unset</span>{% endif %}</dd>
<dt>Password recovery email address</dt>
<dd>{% if user.account.hashed_email %}<span class="profile-value-meta">&#x2714; configured</span>{% else %}<span class="profile-value-meta">&#x2716; not configured</span>{% endif %}</dd>
</dl>
{% endblock %}

Loading…
Cancel
Save