Browse Source

add user information to profile page

master
Fr3deric 6 years ago
parent
commit
a46c5943ad
  1. 30
      bam/templates/bam/profile.html

30
bam/templates/bam/profile.html

@ -1,4 +1,34 @@ @@ -1,4 +1,34 @@
{% extends "bam/base.html" %}
{% block content-extra-head %}
<style>
dt {
padding-top: 0.5em;
color: #999999;
font-size: 80%;
}
dd {
margin-left: 0px;
}
#email-unset {
font-style: italic;
}
</style>
{% endblock %}
{% block content %}
<h1>Welcome, {{ user.username }}!</h1>
<dl>
<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>
</dl>
{% endblock %}

Loading…
Cancel
Save