-
Notifications
You must be signed in to change notification settings - Fork 3
/
show.html
46 lines (41 loc) · 1.23 KB
/
show.html
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
{% extends layout %}
{% load item_tags %}
{% block title-section %}{% endblock %}
{% block content %}
<div class="agent-profile container">
<div class="row">
{% if item.photo %}
{% ifagentcan 'view FileDocument.datafile' item.photo %}
<div class="col-span-3 thumb" style="background-image:url('{{ item.photo.datafile.url }}')">
<img src="{{ item.photo.datafile.url }}" alt="">
</div>
{% endifagentcan %}
{% endif %}
<div class="col-span-9">
<h1 title="title">{% viewable_name item %}</h1>
<ul>
{% for contact_method in contact_methods %}
<li>{{ contact_method }}</li>
{% endfor %}
</ul>
</div>
</div>
<div class="row">
<div class="col-span-12 groups">
<h3>Groups</h3>
<ul>
{% for membership in item.memberships.all %}
<!-- TODO: Check for permission to view! -->
<li><a href="{{ membership.collection.get_absolute_url }}">{{ membership.collection.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="col-span-12 activity">
<h3>Recent Activity</h3>
<div class="activity-inner">
{% metadata_action_notices %}
</div>
</div>
</div>
</div>
{% endblock content %}