mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 10:53:43 +08:00
8444c865e9
Follow-up to #24278 that is slightly less trivial. * Some were "trivial" usages that were missed in the previous PR because the same file that had at least one other non-trivial usage. * These involve extra arguments or inheritance but I have checked that they seem correct.
44 lines
1.3 KiB
Handlebars
44 lines
1.3 KiB
Handlebars
<div class="penalty-similar-users">
|
|
<p class="alert alert-warning">
|
|
{{html-safe
|
|
(i18n
|
|
"admin.user.other_matches"
|
|
(hash count=this.user.similar_users_count username=this.user.username)
|
|
)
|
|
}}
|
|
</p>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>{{i18n "username"}}</th>
|
|
<th>{{i18n "last_seen"}}</th>
|
|
<th>{{i18n "admin.user.topics_entered"}}</th>
|
|
<th>{{i18n "admin.user.posts_read_count"}}</th>
|
|
<th>{{i18n "admin.user.time_read"}}</th>
|
|
<th>{{i18n "created"}}</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{{#each this.user.similar_users as |user|}}
|
|
<tr>
|
|
<td>
|
|
<Input
|
|
@type="checkbox"
|
|
disabled={{not (get user this.penaltyField)}}
|
|
{{on "click" (fn this.selectUserId user.id)}}
|
|
/>
|
|
</td>
|
|
<td>{{avatar user imageSize="small"}} {{user.username}}</td>
|
|
<td>{{format-duration user.last_seen_age}}</td>
|
|
<td>{{number user.topics_entered}}</td>
|
|
<td>{{number user.posts_read_count}}</td>
|
|
<td>{{format-duration user.time_read}}</td>
|
|
<td>{{format-duration user.created_at_age}}</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div> |