Vulcan/client/views/users/user_profile.html
2013-11-21 11:41:04 +09:00

59 lines
No EOL
1.5 KiB
HTML

<template name="user_profile">
<div class="grid">
{{#with user}}
<div class="user-profile grid-block">
<table>
<tr>
<td colspan="2"><img class="user-avatar" src="{{avatarUrl}}"/></td>
</tr>
{{#if isAdmin}}
<tr>
<td>{{i18n "ID"}}: </td>
<td>{{_id}}</td>
</tr>
{{/if}}
<tr>
<td>{{i18n "Name:"}}</td>
<td>{{profile.name}}</td>
</tr>
<tr>
<td>{{i18n "Member since"}}:</td>
<td>{{createdAtFormatted}}</td>
</tr>
<tr>
<td>{{i18n "Bio:"}}</td>
<td>{{profile.bio}}</td>
</tr>
{{#if getTwitterName}}
<tr>
<td>Twitter: </td>
<td><a href="http://twitter.com/{{getTwitterName}}">{{getTwitterName}}</a></td>
</tr>
{{/if}}
{{#if getGitHubName}}
<tr>
<td>{{i18n "GitHub"}}:</td>
<td><a href="http://github.com/{{getGitHubName}}">{{getGitHubName}}</a></td>
</tr>
{{/if}}
{{#if site}}
<tr>
<td>{{i18n "Site"}}:</td>
<td><a href="{{profile.site}}">{{profile.site}}</a></td>
</tr>
{{/if}}
</table>
{{#if canEditProfile}}
<a class="button inline" href="/users/{{slug}}/edit">{{i18n "Edit profile"}}</a>
{{/if}}
{{#if canInvite}}
{{#if inviteCount}}
<a class="button inline invite-link" href="#">{{i18n "Invite"}} ({{inviteCount}} {{i18n "left"}})</a>
{{else}}
<a class="button inline disabled" href="#">{{i18n "Invite (none left)"}}</a>
{{/if}}
{{/if}}
</div>
{{/with}}
</div>
</template>