This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 329
/
search_result.html
50 lines (50 loc) · 1.84 KB
/
search_result.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
46
47
48
49
50
<div class="result">
{% if group and (is_curator or request.user.is_superuser) and (request.user != profile.user) %}
<form action="{{ url('groups:remove_member', group_pk=group.pk, user_pk=profile.pk) }}" method="GET">
{{ csrf() }}
<button type="submit" class="button remove">{{ _('Remove') }} <span>✖</span></button>
</form>
{% if profile.pending %}
<form action="{{ url('groups:confirm_member', group_pk=group.pk, user_pk=profile.pk) }}" method="POST">
{{ csrf() }}
<button type="submit" class="status-pending">{{ _('Requested') }}</span></button>
</form>
{% endif %}
{% elif request.user.userprofile == profile and profile.pending %}
<div class="status-pending">{{ _('Requested') }}</div>
{% endif %}
<div class="card">
<div class="avatar">
<span>
<img class="profile-photo"
src="{{ profile.get_photo_url('70x70') }}"
alt="{{ _('Profile Photo') }}">
</span>
</div>
<div class="details">
<ul>
<li>
<h2>
<a title="{{ profile.display_name }}" href="{{ url('phonebook:profile_view', profile.user.username) }}">
{{ profile.display_name|truncate(20, True) }}
</a>
</h2>
</li>
{% if profile.email %}
<li>
<a title="{{ profile.display_name }}" href="{{ profile.email }}">
<i class="icon-envelope"></i> {{ profile.email|truncate(20, True) }}
</a>
</li>
{% endif %}
{% if profile.user.username %}
<li>
<a title="{{ profile.display_name }}" href="{{ url('phonebook:profile_view', profile.user.username) }}">
<i class="icon-user"></i> {{ profile.user.username|truncate(20, True) }}
</a>
</li>
{% endif %}
</ul>
</div>
</div>
</div>