aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ctrack/templates/base.html2
-rw-r--r--ctrack/templates/users/user_detail.html75
2 files changed, 49 insertions, 28 deletions
diff --git a/ctrack/templates/base.html b/ctrack/templates/base.html
index be4340a..0b1e04e 100644
--- a/ctrack/templates/base.html
+++ b/ctrack/templates/base.html
@@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
- <title>{% block title %}ctrack - Department for Transport{% endblock title %}</title>
+ <title>{% block title %}ctrack - NIS Tracker{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
diff --git a/ctrack/templates/users/user_detail.html b/ctrack/templates/users/user_detail.html
index f1913c3..5b9386f 100644
--- a/ctrack/templates/users/user_detail.html
+++ b/ctrack/templates/users/user_detail.html
@@ -4,35 +4,56 @@
{% 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 class="container">
+
+ <div class="row">
+ <div class="col-sm-12">
+
+ <h1 class="display-4">{{ object.name }}</h1>
+ {% if object.name %}
+ <p>{{ object.name }}</p>
+ {% else %}
+ <p>Email: {{ object.email }}</p>
+ {% endif %}
+ </div>
</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 -->
+ {#{% if object == request.user %}#}
+ {#<!-- Action buttons -->#}
+ {#<div class="row">#}
+ {##}
+ {# <div class="col-sm-12 mb-3">#}
+ {# <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>
+ <hr>
+ <div class="container">
+ <div class="row justify-content-center">
+ <div class="col-md-12 m-2">
+ <h3 class="h3">Recent Events</h3>
+ <table class="table table-bordered">
+ <thead>
+ <tr>
+ <th>Event</th>
+ <th>Comments</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for event in single_date_events %}
+ <tr>
+ <td>{{ event.short_description }}</td>
+ <td>{{ event.comments }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+ </div>
</div>
-
-</div>
-<!-- End Action buttons -->
-{% endif %}
-
-
-</div>
{% endblock content %}