From a46c5943ad5355ac965f852e63db12bba7d3c46c Mon Sep 17 00:00:00 2001 From: Frederic Date: Fri, 26 Apr 2019 18:19:29 +0200 Subject: [PATCH] add user information to profile page --- bam/templates/bam/profile.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/bam/templates/bam/profile.html b/bam/templates/bam/profile.html index c0dab0d..6f3bbd5 100644 --- a/bam/templates/bam/profile.html +++ b/bam/templates/bam/profile.html @@ -1,4 +1,34 @@ {% extends "bam/base.html" %} +{% block content-extra-head %} + +{% endblock %} {% block content %}

Welcome, {{ user.username }}!

+ +
+
Username
+
{{ user.username }}
+ {% if user.first_name %} +
First name
+
{{ user.first_name }}
+ {% endif %} + {% if user.last_name %} +
Last name
+
{{ user.last_name }}
+ {% endif %} +
Email address
+
{% if user.email %}{{ user.email }}{% else %}unset{% endif %}
+
{% endblock %}