diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-20 15:18:22 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-20 15:18:22 +0000 |
commit | 9ebc666f819897aac04e9bc529a39fb40ee7abfb (patch) | |
tree | b9ef935a7f9be6bc96a0ce206badf1f5ffa4469c /ctrack/templates | |
parent | 52a0a7570f55a4d60e67f384a97148df153ae5f7 (diff) |
Playing around with User model
Diffstat (limited to 'ctrack/templates')
-rw-r--r-- | ctrack/templates/users/user_detail.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ctrack/templates/users/user_detail.html b/ctrack/templates/users/user_detail.html index e86eda1..f1913c3 100644 --- a/ctrack/templates/users/user_detail.html +++ b/ctrack/templates/users/user_detail.html @@ -9,9 +9,11 @@ <div class="row"> <div class="col-sm-12"> - <h2>{{ object.username }}</h2> + <h2>User: {{ object.username }}</h2> {% if object.name %} - <p>{{ object.name }}</p> + <p>{{ object.name }}</p> + {% else %} + <p>Email: {{ object.email }}</p> {% endif %} </div> </div> |