diff options
Diffstat (limited to 'ctrack/templates/users/user_detail.html')
-rw-r--r-- | ctrack/templates/users/user_detail.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ctrack/templates/users/user_detail.html b/ctrack/templates/users/user_detail.html new file mode 100644 index 0000000..e86eda1 --- /dev/null +++ b/ctrack/templates/users/user_detail.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} +{% load static %} + +{% block title %}User: {{ object.username }}{% endblock %} + +{% block content %} +<div class="container"> + + <div class="row"> + <div class="col-sm-12"> + + <h2>{{ object.username }}</h2> + {% if object.name %} + <p>{{ object.name }}</p> + {% endif %} + </div> + </div> + +{% if object == request.user %} +<!-- Action buttons --> +<div class="row"> + + <div class="col-sm-12"> + <a class="btn btn-primary" href="{% url 'users:update' %}" role="button">My Info</a> + <a class="btn btn-primary" href="{% url 'account_email' %}" role="button">E-Mail</a> + <!-- Your Stuff: Custom user template urls --> + </div> + +</div> +<!-- End Action buttons --> +{% endif %} + + +</div> +{% endblock content %} + |