FEATURE: Trust level 3 promotion and demotion. Job is disabled for now.
This commit is contained in:
@@ -13,11 +13,13 @@ Discourse.LeaderRequirements = Discourse.Model.extend({
|
||||
topics_replied_to: this.get('num_topics_replied_to') >= this.get('min_topics_replied_to'),
|
||||
topics_viewed: this.get('topics_viewed') >= this.get('min_topics_viewed'),
|
||||
posts_read: this.get('posts_read') >= this.get('min_posts_read'),
|
||||
flagged_posts: this.get('num_flagged_posts') < this.get('max_flagged_posts')
|
||||
flagged_posts: this.get('num_flagged_posts') <= this.get('max_flagged_posts'),
|
||||
flagged_by_users: this.get('num_flagged_by_users') <= this.get('max_flagged_by_users')
|
||||
};
|
||||
}.property('days_visited', 'min_days_visited',
|
||||
'num_topics_replied_to', 'min_topics_replied_to',
|
||||
'topics_viewed', 'min_topics_viewed',
|
||||
'posts_read', 'min_posts_read',
|
||||
'num_flagged_posts', 'max_flagged_posts')
|
||||
'num_flagged_posts', 'max_flagged_posts',
|
||||
'num_flagged_by_users', 'max_flagged_by_users')
|
||||
});
|
||||
|
||||
@@ -55,18 +55,30 @@
|
||||
<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 {{bindAttr 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>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
<p>
|
||||
{{#if requirements_met}}
|
||||
<i class="fa fa-check"></i> Qualifies for trust level 3
|
||||
{{else}}
|
||||
<i class="fa fa-times"></i> Doesn't qualify for trust level 3
|
||||
{{/if}}
|
||||
</p>
|
||||
{{/with}}
|
||||
|
||||
<br/>
|
||||
<p>
|
||||
{{#if leaderRequirements.requirements_met}}
|
||||
<i class="fa fa-check"></i> {{i18n admin.user.tl3_requirements.qualifies}}
|
||||
{{#unless isLeader}}
|
||||
{{i18n admin.user.tl3_requirements.will_be_promoted}}
|
||||
{{/unless}}
|
||||
{{else}}
|
||||
<i class="fa fa-times"></i> {{i18n admin.user.tl3_requirements.does_not_qualify}}
|
||||
{{#if isLeader}}
|
||||
{{i18n admin.user.tl3_requirements.will_be_demoted}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user