aboutsummaryrefslogblamecommitdiffstats
path: root/ctrack/templates/users/user_detail.html
blob: f1913c3c04a47ef0d0a740c3e8d240328d934639 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                          
                                          
                          


                                        





















                                                                                        
{% 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>User: {{ object.username }}</h2>
      {% if object.name %}
      <p>{{ object.name }}</p>
      {% else %}
        <p>Email: {{ object.email }}</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 %}