diff options
author | Cara Salter <cara@devcara.com> | 2022-09-21 21:33:40 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-09-21 21:33:40 -0400 |
commit | f9b99ce66f56995a29709e9bf24750dab9430767 (patch) | |
tree | 3624255932ab500bcfa3043932acd31b23fe86b3 /app/templates/profile.html | |
parent | b1ffd5220866dc9479fa284dfb2f0a0e111a6031 (diff) | |
download | nccd-f9b99ce66f56995a29709e9bf24750dab9430767.tar.gz nccd-f9b99ce66f56995a29709e9bf24750dab9430767.zip |
bunch of features
registration, logging out, listing networks, user profiles
Diffstat (limited to 'app/templates/profile.html')
-rw-r--r-- | app/templates/profile.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app/templates/profile.html b/app/templates/profile.html new file mode 100644 index 0000000..6d4d60a --- /dev/null +++ b/app/templates/profile.html @@ -0,0 +1,46 @@ +{% extends 'base.html' %} + +{% block content %} +<h1>{{current_user.pref_name}} - {{current_user.email}} ({{current_user.id}})</h1> + +{% if debug %} +<table> + <thead> + <tr> + <th scope="col">Key</th> + <th scope="col">Value</th> + </tr> + </thead> + <tbody> + {% for attr, value in current_user.__dict__.items() %} + <tr> + <td>{{attr}}</td> + <td>{{value}}</td> + </tr> + {% endfor %} + </tbody> +</table> +{% endif %} + +<h3>Owned Peers</h3> +<table> + <thead> + <tr> + <th scope="col">ID</th> + <th scope="col">Description</th> + <th scope="col">Address</th> + <th scope="col">Public Key</th> + </tr> + </thead> + <tbody> + {% for p in peers %} + <tr> + <td>{{p.id}}</td> + <td>{{p.description}}</td> + <td>{{p.addr}}</td> + <td>{{p.public_key}}</td> + </tr> + {% endfor %} + </tbody> +</table> +{% endblock %} |