userfind.tpl 4.42 KB
Newer Older
1
2
3
4
5
6
<div class="list-group-item {if $user->pending} list-group-item-warning{/if}">
    <a href="{profile_url($user)}" class="outer-link">
        <span class="sr-only">{$user->display_name}</span>
     </a>
    <div class="row" id="friendinfo_{$user->id}">
        <div class="col-sm-8">
Naomi Guyer's avatar
Naomi Guyer committed
7
            <div class="user-icon mtxs mrm pull-left">
8
9
10
11
12
13
14
15
16
17
18
19
20
                <img src="{profile_icon_url user=$user maxwidth=40 maxheight=40}" alt="{str tag=profileimagetext arg1=$user|display_default_name}">
            </div>
            <div class="pull-left">
                 <h4 class="list-group-item-heading">
                    {$user->display_name}
                    {if $user->pending}
                    <span class="pendingfriend metadata"> - {str tag='pending' section='group'}</span>
                    {elseif $user->friend && $page == 'find'}
                    <span class="existingfriend metadata"> - {str tag='existingfriend' section='group'}</span>
                    {/if}
                </h4>
                {if $user->institutions}
                <p class="memberof mtm detail text-small">
21
                    <span class="icon icon-lg text-default icon-university prs"></span>
22
23
24
25
26
27
28
                    <span>
                    {$user->institutions|safe}
                </p>
                {/if}
            </div>
        </div>
        <div class="col-sm-4">
Naomi Guyer's avatar
Naomi Guyer committed
29
            <ul class="list-unstyled inner-link text-small">
30
                {if $user->pending}
Naomi Guyer's avatar
Naomi Guyer committed
31
                <li class="approvefriend pbs">
32
                    <span class="icon icon-check icon-lg text-success"></span>
33
34
                    {$user->accept|safe}
                </li>
Naomi Guyer's avatar
Naomi Guyer committed
35
                <li class="denyrequest pbs">
36
                    <span class="icon icon-ban icon-lg text-danger prs"></span>
37
38
39
40
41
42
                    <a href="{$WWWROOT}user/denyrequest.php?id={$user->id}&amp;returnto={$page}&amp;offset={$offset}" class="btn-deny">
                        {str tag='denyrequest' section='group'}
                    </a>
                </li>
                {/if}
                {if $user->friend}
Naomi Guyer's avatar
Naomi Guyer committed
43
                <li class="removefriend pbs">
44
                    <span class="icon icon-lg text-danger icon-remove prs"></span>
45
46
47
48
49
50
                    <a href="{$WWWROOT}user/removefriend.php?id={$user->id}&amp;returnto={$page}&amp;offset={$offset}" class="btn-del">
                        {str tag='removefromfriendslist' section='group'}
                    </a>
                </li>
                {elseif $user->requestedfriendship}
                <li class="notbtn pbm">
Naomi Guyer's avatar
Naomi Guyer committed
51
                    <span class="icon icon-lg text-success icon-check prs"></span>
52
53
54
55
56
57
                    <span>
                        {str tag='friendshiprequested' section='group'}
                    </span>
                </li>
                {elseif !$user->pending} {* Not an existing, pending, or requested friend *}
                {if $user->friendscontrol == 'auth'}
Naomi Guyer's avatar
Naomi Guyer committed
58
                <li class="friend pbs">
59
                    <span class="icon icon-user-plus icon-lg text-success prs"></span>
60
61
62
63
64
                    <a href="{$WWWROOT}user/requestfriendship.php?id={$user->id}&amp;returnto={$page}&amp;offset={$offset}" class="btn-request">
                        {str tag='sendfriendrequest' section='group'}
                    </a>
                </li>
                {elseif $user->friendscontrol == 'auto'}
Naomi Guyer's avatar
Naomi Guyer committed
65
                <li class="friend pbs">
66
67
68
                    {$user->makefriend|safe}
                </li>
                {else}
Naomi Guyer's avatar
Naomi Guyer committed
69
                <li class="nofriend pbs">
70
71
72
73
74
                    {str tag='userdoesntwantfriends' section='group'}
                </li>
                {/if}
                {/if}
                {if $user->messages}
Naomi Guyer's avatar
Naomi Guyer committed
75
                <li class="messages pbs">
76
                    <span class="icon icon-envelope icon-lg text-default prs"></span>
77
78
79
80
81
82
                    <a href="{$WWWROOT}user/sendmessage.php?id={$user->id}&amp;returnto={$page}&amp;offset={$offset}" class="btn-message">
                        {str tag='sendmessage' section='group'}
                    </a>
                </li>
                {/if}
                {if $admingroups}
Naomi Guyer's avatar
Naomi Guyer committed
83
                <li class="editgroup pbs">
84
                    <span class="icon icon-lg text-default icon-cogs prs"></span>
85
86
87
88
89
                    <a href="" onclick="showGroupBox(event, {$user->id})" class="btn-edit">{str tag='editgroupmembership' section='group'}</a>
                </li>
                {/if}
            </ul>
        </div>
90
    </div>
Naomi Guyer's avatar
Naomi Guyer committed
91
</div>