You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

106 lines
4.1 KiB

<h1>Profile for {$user.username|escape:"htmlall"}</h1>
<table class="data">
<tr><th>Username:</th><td>{$user.username|escape:"htmlall"}</td></tr>
{if $isadmin || !$publicview}<tr><th title="Not public">Email:</th><td>{$user.email}</td></tr>{/if}
<tr><th>Registered:</th><td title="{$user.createddate}">{$user.createddate|date_format} ({$user.createddate|timeago} ago)</td></tr>
<tr><th>Last Login:</th><td title="{$user.lastlogin}">{$user.lastlogin|date_format} ({$user.lastlogin|timeago} ago)</td></tr>
<tr><th>Role:</th><td>{$user.rolename}</td></tr>
<tr><th>Theme:</th><td>{$user.style}</td></tr>
{if $isadmin || !$publicview}<tr><th title="Not public">Site Api/Rss Key:</th><td><a href="{$smarty.const.WWW_TOP}/rss?t=0&amp;dl=1&amp;i={$user.id}&amp;r={$user.rsstoken}">{$user.rsstoken}</a></td></tr>{/if}
<tr><th>Grabs:</th><td>{$user.grabs}</td></tr>
<tr><th>API Requests Today:</th><td>{$apirequests}</td></tr>
{if (!$publicview || $isadmin) && $site->registerstatus==1}
<tr>
<th title="Not public">Invites:</th>
<td>{$user.invites}
{if $user.invites > 0}
[<a id="lnkSendInvite" onclick="return false;" href="#">Send Invite</a>]
<span title="Your invites will be reduced when the invitation is claimed." class="invitesuccess" id="divInviteSuccess">Invite Sent</span>
<span class="invitefailed" id="divInviteError"></span>
<div style="display:none;" id="divInvite">
<form id="frmSendInvite" method="GET">
<label for="txtInvite">Email:</label>
<input type="text" id="txtInvite" />
<input type="submit" value="Send"/>
</form>
</div>
{/if}
</td>
</tr>
{/if}
{if $userinvitedby && $userinvitedby.username != ""}
<tr><th>Invited By:</th><td>
{if $privileged || !$privateprofiles}
<a title="View {$userinvitedby.username}'s profile" href="{$smarty.const.WWW_TOP}/profile?name={$userinvitedby.username}">{$userinvitedby.username}</a>
{else}
{$userinvitedby.username}
{/if}
</td>
{/if}
<tr><th>UI Preferences:</th>
<td>
{if $user.movieview == "1"}View movie covers{else}View standard movie category{/if}<br/>
{if $user.xxxview == "1"}View xxx covers{else}View standard xxx category{/if}<br />
{if $user.gameview == "1"}View game covers{else}View standard game category{/if}<br />
{if $user.musicview == "1"}View music covers{else}View standard music category{/if}<br/>
{if $user.consoleview == "1"}View console covers{else}View standard console category{/if}<br/>
{if $user.bookview == "1"}View book covers{else}View standard book category{/if}
</td>
</tr>
{if !$publicview || $isadmin}<tr><th title="Not public">Excluded Categories:</th><td>{$exccats|replace:",":"<br/>"}</td></tr>{/if}
{if $page->getSettingValue('apps.sabnzbplus.integrationtype') == 2 && (!$publicview || $isadmin)}
<tr><th>SABnzbd Integration:</th>
<td>
Url: {if $saburl == ''}N/A{else}{$saburl}{/if}<br/>
Key: {if $sabapikey == ''}N/A{else}{$sabapikey}{/if}<br/>
Type: {if $sabapikeytype == ''}N/A{else}{$sabapikeytype}{/if}<br/>
Priority: {if $sabpriority == ''}N/A{else}{$sabpriority}{/if}<br/>
Storage: {if $sabsetting == ''}N/A{else}{$sabsetting}{/if}
</td>
{/if}
{if !$publicview || $isadmin}
<tr><th>CouchPotato Integration:</th>
<td>
Url: {if $user.cp_url == ''}N/A{else}{$user.cp_url}{/if}<br/>
Key: {if $user.cp_api == ''}N/A{else}{$user.cp_api}{/if}<br/>
</td>
{/if}
{if !$publicview}
<tr><th>My TV Shows:</th><td><a href="{$smarty.const.WWW_TOP}/myshows">Manage my shows</a></td></tr>
<tr><th>My Movies:</th><td><a href="{$smarty.const.WWW_TOP}/mymovies">Manage my movies</a></td></tr>
<tr><th></th><td><a href="{$smarty.const.WWW_TOP}/profileedit">Edit</a></td></tr>
{/if}
</table>
{if $commentslist|@count > 0}
<div style="padding-top:20px;">
<a id="comments"></a>
<h2>Comments</h2>
{$pager}
<table style="margin-top:10px;" class="data Sortable">
<tr>
<th>date</th>
<th>comment</th>
</tr>
{foreach $commentslist as $comment}
<tr>
<td width="80" title="{$comment.createddate}">{$comment.createddate|date_format}</td>
<td>{$comment.text|escape:"htmlall"|nl2br}</td>
</tr>
{/foreach}
</table>
</div>
{/if}