blob: f4f466f1a3b42cdacdd836cd9b7f2b240eeb0a68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{% extends "base.html" %}
{% load static %}
{% block title %}User: {{ object.username }}{% endblock %}
{% block content %}
<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>
{#{% 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 class="w-25">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>
{% endblock content %}
|