Hypolite Petovan
1723903219
- Simplify imports - Use router parameters - Use exceptions - Simplify querying and result processing - Add no result label
29 lines
1.1 KiB
Smarty
29 lines
1.1 KiB
Smarty
<div class="generic-page-wrapper">
|
|
{{include file="section_title.tpl"}}
|
|
|
|
{{if $desc}}
|
|
<p>{{$desc nofilter}}</p>
|
|
{{/if}}
|
|
|
|
<ul role="menubar" class="tabs">
|
|
<li role="menuitem"><a href="profile/{{$nickname}}/contacts" class="tab button{{if !$type || $type == 'all'}} active{{/if}}">{{$all_label}}</a></li>
|
|
<li role="menuitem"><a href="profile/{{$nickname}}/contacts/followers" class="tab button{{if $type == 'followers'}} active{{/if}}">{{$followers_label}}</a></li>
|
|
<li role="menuitem"><a href="profile/{{$nickname}}/contacts/following" class="tab button{{if $type == 'following'}} active{{/if}}">{{$following_label}}</a></li>
|
|
<li role="menuitem"><a href="profile/{{$nickname}}/contacts/mutuals" class="tab button{{if $type == 'mutuals'}} active{{/if}}">{{$mutuals_label}}</a></li>
|
|
</ul>
|
|
{{if $contacts}}
|
|
<div id="viewcontact_wrapper-{{$id}}">
|
|
{{foreach $contacts as $contact}}
|
|
{{include file="contact_template.tpl"}}
|
|
{{/foreach}}
|
|
</div>
|
|
{{else}}
|
|
<div class="alert alert-info" role="alert">{{$noresult_label}}</div>
|
|
{{/if}}
|
|
|
|
<div class="clear"></div>
|
|
<div id="view-contact-end"></div>
|
|
|
|
{{$paginate nofilter}}
|
|
</div>
|