profile.tpl 4.45 KB
Newer Older
1
<div class="card">
2
        <h3 class="card-header profile-block">
3
4
            <a href="{$sbdata.url}" class="username">{$sbdata.myname}</a>
            <a href="{$sbdata.profileiconurl}" title="{str tag="editprofileicon" section="artefact.file"}" class="user-icon">
Naomi Guyer's avatar
Naomi Guyer committed
5
6
7
8
9
                <img src="{profile_icon_url user=$sbdata.id maxheight=60 maxwidth=60}" alt="{str tag="editprofileicon" section="artefact.file"}">
            </a>
        </h3>
    <div class="list-group">
        {if $sbdata.mnetloggedinfrom}
10
11
            <div class="list-group-item list-group-item-profile-notification">
                {$sbdata.mnetloggedinfrom|clean_html|safe}
12
            </div>
Naomi Guyer's avatar
Naomi Guyer committed
13
14
        {/if}
        {if $sbdata.invitedgroups}
15
            <div id="invitedgroups" class="list-group-item list-group-item-warning list-group-item-profile-notification">
16
                <a href="{$WWWROOT}group/index.php?filter=invite">
Liam's avatar
Liam committed
17
                    <span id="invitedgroupscount" class="badge badge-warning">{$sbdata.invitedgroups}</span>
18
19
20
                    <span id="invitedgroupsmessage">{$sbdata.invitedgroupsmessage}</span>
                </a>
            </div>
Naomi Guyer's avatar
Naomi Guyer committed
21
22
        {/if}
        {if $sbdata.pendingfriends}
23
            <div id="pendingfriends" class="list-group-item list-group-item-warning list-group-item-profile-notification">
24
                <a href="{$WWWROOT}user/index.php?filter=pending">
Liam's avatar
Liam committed
25
                    <span id="pendingfriendscount" class="badge badge-warning">{$sbdata.pendingfriends}</span>
26
27
28
                    <span id="pendingfriendsmessage">{$sbdata.pendingfriendsmessage}</span>
                </a>
            </div>
Naomi Guyer's avatar
Naomi Guyer committed
29
30
        {/if}
        {if $sbdata.groups}
31
            <div id="groups" class="list-group-item">
32
                <div class="list-group-item-heading sidebar-item-heading"><a href="{$WWWROOT}group/index.php">{str tag="mygroups"}:</a></div>
33
                <ul class="list-nested list-group-item-text list-unstyled list-group-item-link">
Naomi Guyer's avatar
Naomi Guyer committed
34
        {foreach from=$sbdata.groups item=group}
35
                    <li><a href="{$group->homeurl}" class="bordered">{$group->name} {if $group->role == 'admin'}<small>({str tag=Admin section=group})</small>{/if}</a></li>
Naomi Guyer's avatar
Naomi Guyer committed
36
        {/foreach}
Pat Kira's avatar
Pat Kira committed
37
               </ul>
38
                <span class="text-small text-midtone">{$sbdata.grouplimitstr}</span>
39
            </div>
Naomi Guyer's avatar
Naomi Guyer committed
40
41
        {/if}
        {if $sbdata.views}
42
43
44
            <div id="views" class="list-group-item">
                <div class="list-group-item-heading sidebar-item-heading"><a href="{$WWWROOT}view/">{str tag="views"}:</a></div>
                <ul class="list-nested list-group-item-text list-unstyled list-group-item-link">
Naomi Guyer's avatar
Naomi Guyer committed
45
        {foreach from=$sbdata.views item=view}
46
                    <li><a href="{$view->fullurl}">{$view->title}</a></li>
Naomi Guyer's avatar
Naomi Guyer committed
47
        {/foreach}
48
49
                </ul>
            </div>
Naomi Guyer's avatar
Naomi Guyer committed
50
51
        {/if}
        {if $sbdata.artefacts}
52
53
54
            <div class="artefacts list-group-item">
                <div class="list-group-item-heading sidebar-item-heading">{str tag="Artefacts"}:</div>
                <ul class="list-nested list-group-item-text list-unstyled list-group-item-link">
Naomi Guyer's avatar
Naomi Guyer committed
55
56
        {foreach from=$sbdata.artefacts item=artefact}
        {if $artefact->artefacttype == 'blog'}
57
                    <li><a href="{$WWWROOT}artefact/blog/view/index.php?id={$artefact->id}">{$artefact->title}</a></li>
Naomi Guyer's avatar
Naomi Guyer committed
58
        {elseif $artefact->artefacttype == 'blogpost'}
59
                    <li><a href="{$WWWROOT}artefact/blog/view/index.php?id={$artefact->blogid}">{$artefact->title}</a></li>
Naomi Guyer's avatar
Naomi Guyer committed
60
        {elseif $artefact->artefacttype == 'file' || $artefact->artefacttype == 'image' || $artefact->artefacttype == 'profileicon' || $artefact->artefacttype == 'archive'}
61
                    <li><a href="{$WWWROOT}artefact/file/download.php?file={$artefact->id}">{$artefact->title}</a></li>
Naomi Guyer's avatar
Naomi Guyer committed
62
        {elseif $artefact->artefacttype == 'folder'}
63
                    <li><a href="{$WWWROOT}artefact/file/index.php?folder={$artefact->id}">{$artefact->title}</a></li>
Naomi Guyer's avatar
Naomi Guyer committed
64
65
        {/if}
        {/foreach}
66
67
                </ul>
            </div>
Naomi Guyer's avatar
Naomi Guyer committed
68
69
70
        {/if}
    </div>
    {if $sbdata.peer}
Liam's avatar
Liam committed
71
        <div id="sbdatapeer"><a href="{$sbdata.peer.wwwroot}" class="card-body">{$sbdata.peer.name}</a></div>
Naomi Guyer's avatar
Naomi Guyer committed
72
73
    {/if}
    {if $USERMASQUERADING}
Liam's avatar
Liam committed
74
        <div id="changeuser" class="card-footer">
75
            <a href="{$becomeyoulink}">
76
                <span class="icon icon-lg left icon-undo" role="presentation" aria-hidden="true"></span>
77
78
79
                <span>{$becomeyouagain}</span>
            </a>
        </div>
Naomi Guyer's avatar
Naomi Guyer committed
80
    {/if}
Pat Kira's avatar
Pat Kira committed
81
</div>