Vulcan/packages/telescope-users/lib/client/templates/profile/user_info.html

56 lines
1.6 KiB
HTML
Raw Normal View History

<template name="user_info">
2014-12-08 14:53:26 +09:00
<div class="user-profile grid grid-module">
<table>
<tr>
<td colspan="2" aria-hidden="true">{{> avatar user=this size="large" shape="circle"}}</td>
2014-12-08 14:53:26 +09:00
</tr>
{{#if isAdmin}}
<tr>
<td>{{_ "id"}}: </td>
<td>{{_id}}</td>
</tr>
{{/if}}
<tr>
<td>{{_ "name"}}</td>
2015-03-12 10:12:47 +01:00
<td>{{profile.username}}</td>
2014-12-08 14:53:26 +09:00
</tr>
<tr>
<td>{{_ "member_since"}}:</td>
<td>{{createdAtFormatted}}</td>
</tr>
<tr>
<td>{{_ "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>{{_ "github"}}:</td>
<td><a href="http://github.com/{{getGitHubName}}">{{getGitHubName}}</a></td>
</tr>
{{/if}}
{{#if profile.site}}
<tr>
<td>{{_ "site"}}:</td>
<td><a href="{{profile.site}}">{{profile.site}}</a></td>
</tr>
{{/if}}
</table>
{{#if canEditProfile}}
2014-12-30 17:36:37 +09:00
<a class="button btn btn-primary inline" href="{{pathFor route='user_edit' slug=slug}}">{{_ "edit_profile"}}</a>
2014-12-08 14:53:26 +09:00
{{/if}}
{{#if canInvite}}
{{#if inviteCount}}
2014-12-30 17:36:37 +09:00
<a class="button btn btn-primary inline invite-link" href="#">{{_ "invite"}} ({{inviteCount}} {{_ "left"}})</a>
2014-12-08 14:53:26 +09:00
{{else}}
2014-12-30 17:36:37 +09:00
<a class="button btn inline disabled" href="#">{{_ "invite_none_left"}}</a>
2014-12-08 14:53:26 +09:00
{{/if}}
{{/if}}
</div>
2015-03-12 10:12:47 +01:00
</template>