mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 04:19:05 +08:00
141 lines
5.9 KiB
Handlebars
141 lines
5.9 KiB
Handlebars
<div class='admin-controls'>
|
|
<div class='span15'>
|
|
<ul class="nav nav-pills">
|
|
<li>{{#link-to 'adminUser' this}}<i class="fa fa-caret-left"></i> {{username}}{{/link-to}}</li>
|
|
<li>{{#link-to 'adminUsersList.regular'}}{{i18n admin.user.trust_level_2_users}}{{/link-to}}</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="admin-container leader-requirements">
|
|
<h2>{{username}} - {{i18n admin.user.tl3_requirements.title}}</h2>
|
|
<br/>
|
|
<p>{{i18n admin.user.tl3_requirements.table_title}}</p>
|
|
|
|
{{#with leaderRequirements}}
|
|
<table class="table" style="width: 50%;">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th></th>
|
|
<th>{{i18n admin.user.tl3_requirements.value_heading}}</th>
|
|
<th>{{i18n admin.user.tl3_requirements.requirement_heading}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.visits}}</th>
|
|
<td><i {{bind-attr class=":fa met.days_visited:fa-check:fa-times"}}></i></td>
|
|
<td>
|
|
{{days_visited_percent}}% ({{days_visited}} / {{time_period}} {{i18n admin.user.tl3_requirements.days}})
|
|
</td>
|
|
<td>{{min_days_visited_percent}}%</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.topics_replied_to}}</th>
|
|
<td><i {{bind-attr class=":fa met.topics_replied_to:fa-check:fa-times"}}></i></td>
|
|
<td>{{num_topics_replied_to}}</td>
|
|
<td>{{min_topics_replied_to}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.topics_viewed}}</th>
|
|
<td><i {{bind-attr class=":fa met.topics_viewed:fa-check:fa-times"}}></i></td>
|
|
<td>{{topics_viewed}}</td>
|
|
<td>{{min_topics_viewed}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.topics_viewed_all_time}}</th>
|
|
<td><i {{bind-attr class=":fa met.topics_viewed_all_time:fa-check:fa-times"}}></i></td>
|
|
<td>{{topics_viewed_all_time}}</td>
|
|
<td>{{min_topics_viewed_all_time}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.posts_read}}</th>
|
|
<td><i {{bind-attr class=":fa met.posts_read:fa-check:fa-times"}}></i></td>
|
|
<td>{{posts_read}}</td>
|
|
<td>{{min_posts_read}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.posts_read_all_time}}</th>
|
|
<td><i {{bind-attr class=":fa met.posts_read_all_time:fa-check:fa-times"}}></i></td>
|
|
<td>{{posts_read_all_time}}</td>
|
|
<td>{{min_posts_read_all_time}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.flagged_posts}}</th>
|
|
<td><i {{bind-attr class=":fa met.flagged_posts:fa-check:fa-times"}}></i></td>
|
|
<td>{{num_flagged_posts}}</td>
|
|
<td>{{max_flagged_posts}} {{i18n max}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.flagged_by_users}}</th>
|
|
<td><i {{bind-attr class=":fa met.flagged_by_users:fa-check:fa-times"}}></i></td>
|
|
<td>{{num_flagged_by_users}}</td>
|
|
<td>{{max_flagged_by_users}} {{i18n max}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.likes_given}}</th>
|
|
<td><i {{bind-attr class=":fa met.likes_given:fa-check:fa-times"}}></i></td>
|
|
<td>{{num_likes_given}}</td>
|
|
<td>{{min_likes_given}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.likes_received}}</th>
|
|
<td><i {{bind-attr class=":fa met.likes_received:fa-check:fa-times"}}></i></td>
|
|
<td>{{num_likes_received}}</td>
|
|
<td>{{min_likes_received}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{{i18n admin.user.tl3_requirements.trust_level_locked}}</th>
|
|
<td><i {{bind-attr class=":fa met.level_locked:fa-lock:fa-unlock"}}></i></td>
|
|
{{#if trust_level_locked}}
|
|
<td>{{i18n yes_value}}</td>
|
|
<td><a class="btn" {{action unlock_trust_level}}>{{i18n admin.user.tl3_requirements.unlock_tl}}</a></td>
|
|
{{else}}
|
|
<td>{{i18n no_value}}</td>
|
|
<td><a class="btn" {{action lock_trust_level}}>{{i18n admin.user.tl3_requirements.lock_tl}}</a></td>
|
|
{{/if}}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{{/with}}
|
|
|
|
<br/>
|
|
<p>
|
|
{{#if isLeader}}
|
|
{{#if leaderRequirements.requirements_lost}}
|
|
{{! tl implicitly not locked }}
|
|
{{#if leaderRequirements.on_grace_period}}
|
|
<i class="fa fa-times"></i> {{i18n admin.user.tl3_requirements.on_grace_period}}
|
|
{{else}} {{! not on grace period }}
|
|
<i class="fa fa-times"></i> {{i18n admin.user.tl3_requirements.does_not_qualify}}
|
|
{{i18n admin.user.tl3_requirements.will_be_demoted}}
|
|
{{/if}}
|
|
{{else}} {{! requirements not lost - remains leader }}
|
|
{{#if leaderRequirements.trust_level_locked}}
|
|
<i class="fa fa-lock"></i> {{i18n admin.user.tl3_requirements.locked_will_not_be_demoted}}
|
|
{{else}} {{! tl not locked }}
|
|
<i class="fa fa-check"></i> {{i18n admin.user.tl3_requirements.qualifies}}
|
|
{{#if leaderRequirements.on_grace_period}}
|
|
{{i18n admin.user.tl3_requirements.on_grace_period}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{else}} {{! is not leader }}
|
|
{{#if leaderRequirements.requirements_met}}
|
|
{{! met & not leader - will be promoted}}
|
|
<i class="fa fa-check"></i> {{i18n admin.user.tl3_requirements.qualifies}}
|
|
{{i18n admin.user.tl3_requirements.will_be_promoted}}
|
|
{{else}} {{! requirements not met - remains regular }}
|
|
{{#if leaderRequirements.trust_level_locked}}
|
|
<i class="fa fa-lock"></i> {{i18n admin.user.tl3_requirements.locked_will_not_be_promoted}}
|
|
{{else}}
|
|
<i class="fa fa-times"></i> {{i18n admin.user.tl3_requirements.does_not_qualify}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</p>
|
|
</div>
|
|
|
|
|