2012-09-24 22:27:29 +02:00
|
|
|
<template name="user_profile">
|
|
|
|
<div class="grid">
|
|
|
|
{{#with user}}
|
|
|
|
<div class="user-profile grid-block">
|
|
|
|
<table>
|
|
|
|
<tr>
|
2013-11-07 09:57:57 +09:00
|
|
|
<td colspan="2"><img class="user-avatar" src="{{avatarUrl}}"/></td>
|
2012-09-24 22:27:29 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Name: </td>
|
2013-10-09 20:50:26 +09:00
|
|
|
<td>{{profile.name}}</td>
|
2012-09-24 22:27:29 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Member since: </td>
|
2012-10-11 08:23:52 +09:00
|
|
|
<td>{{createdAtFormatted}}</td>
|
2012-09-24 22:27:29 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Bio: </td>
|
|
|
|
<td>{{profile.bio}}</td>
|
|
|
|
</tr>
|
2013-11-08 11:42:00 +09:00
|
|
|
{{#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 site}}
|
|
|
|
<tr>
|
|
|
|
<td>Site: </td>
|
|
|
|
<td><a href="{{profile.site}}">{{profile.site}}</a></td>
|
|
|
|
</tr>
|
|
|
|
{{/if}}
|
2012-09-24 22:27:29 +02:00
|
|
|
</table>
|
2013-10-09 20:50:26 +09:00
|
|
|
{{#if canEditProfile}}
|
2013-10-26 10:37:32 +09:00
|
|
|
<a class="button inline" href="/users/{{slug}}/edit">Edit profile</a>
|
2013-10-23 19:43:42 +09:00
|
|
|
{{/if}}
|
|
|
|
{{#if canInvite}}
|
|
|
|
{{#if invitesCount}}
|
2013-10-26 10:37:32 +09:00
|
|
|
<a class="button inline invite-link" href="#">Invite ({{invitesCount}} left)</a>
|
2013-10-23 19:43:42 +09:00
|
|
|
{{else}}
|
2013-10-26 10:37:32 +09:00
|
|
|
<a class="button inline disabled" href="#">Invite (none left)</a>
|
2013-10-23 19:43:42 +09:00
|
|
|
{{/if}}
|
2012-09-24 22:27:29 +02:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/with}}
|
|
|
|
</div>
|
|
|
|
</template>
|