diff options
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 %} |