mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
70 lines
2.3 KiB
Handlebars
70 lines
2.3 KiB
Handlebars
<section class='user-content'>
|
|
|
|
<h2>{{i18n user.invited.title}}</h2>
|
|
|
|
{{#if canInviteToForum}}
|
|
<button {{action showInvite}} class='btn right'>{{i18n user.invited.create}}</button>
|
|
{{/if}}
|
|
|
|
{{#if showSearch}}
|
|
<form>
|
|
{{textField value=searchTerm placeholderKey="user.invited.search"}}
|
|
</form>
|
|
{{/if}}
|
|
|
|
{{#if model.invites}}
|
|
<table class='table'>
|
|
<tr>
|
|
<th>{{i18n user.invited.user}}</th>
|
|
<th>{{i18n user.invited.redeemed_at}}</th>
|
|
{{#if can_see_invite_details}}
|
|
<th>{{i18n user.last_seen}}</th>
|
|
<th>{{i18n user.invited.topics_entered}}</th>
|
|
<th>{{i18n user.invited.posts_read_count}}</th>
|
|
<th>{{i18n user.invited.time_read}}</th>
|
|
<th>{{i18n user.invited.days_visited}}</th>
|
|
{{/if}}
|
|
</tr>
|
|
{{#each invite in model.invites}}
|
|
<tr>
|
|
{{#if invite.user}}
|
|
<td>
|
|
{{#link-to 'user' invite.user}}{{avatar invite.user imageSize="tiny"}}{{/link-to}}
|
|
{{#link-to 'user' invite.user}}{{invite.user.username}}{{/link-to}}
|
|
</td>
|
|
<td>{{unboundDate invite.redeemed_at}}</td>
|
|
{{#if can_see_invite_details}}
|
|
<td>{{unboundDate invite.user.last_seen_at}}</td>
|
|
<td>{{number invite.user.topics_entered}}</td>
|
|
<td>{{number invite.user.posts_read_count}}</td>
|
|
<td>{{{unbound invite.user.time_read}}}</td>
|
|
<td><span title="{{i18n user.invited.days_visited}}">{{{unbound invite.user.days_visited}}}</span>
|
|
/
|
|
<span title="{{i18n user.invited.account_age_days}}">{{{unbound invite.user.days_since_created}}}</span></td>
|
|
{{/if}}
|
|
{{else}}
|
|
<td>{{unbound invite.email}}</td>
|
|
<td colspan='6'>
|
|
{{#if invite.expired}}
|
|
{{i18n user.invited.expired}}
|
|
{{/if}}
|
|
{{#if invite.rescinded}}
|
|
{{i18n user.invited.rescinded}}
|
|
{{else}}
|
|
<button class='btn' {{action rescind invite}}>{{i18n user.invited.rescind}}</button>
|
|
{{/if}}
|
|
</td>
|
|
{{/if}}
|
|
</tr>
|
|
{{/each}}
|
|
</table>
|
|
|
|
{{#if truncated}}
|
|
<p>{{i18n user.invited.truncated count=maxInvites}}</p>
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
{{i18n user.invited.none}}
|
|
{{/if}}
|
|
|
|
</section>
|