mirror of
https://github.com/house-of-vanity/libopenanal.git
synced 2026-11-09 00:28:50 +00:00
Detect abused values.
This commit is contained in:
1 parent
8bc4886f5a
commit
c27a51bdaf
1 file changed
+28
-20
+28
-20
@@ -80,7 +80,15 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{{loop.index}}</th>
|
<th scope="row">{{loop.index}}</th>
|
||||||
<td>{{word[0]}}</td>
|
<td>{{word[0]}}</td>
|
||||||
|
{% if not loop.last %}
|
||||||
|
{% if (word[1]/loop.nextitem[1]) > 2 %}
|
||||||
|
<td><span class="badge badge-danger" data-toggle="tooltip" data-placement="right" title="Must have been abused">{{word[1]}} </span></td>
|
||||||
|
{% else %}
|
||||||
<td><span class="badge badge-secondary">{{word[1]}} </span></td>
|
<td><span class="badge badge-secondary">{{word[1]}} </span></td>
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
<td><span class="badge badge-secondary">{{word[1]}} </span></td>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -92,26 +100,26 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">Chats</h5>
|
<h5 class="card-title">Chats</h5>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
<table class="table table-hover table-sm">
|
<table class="table table-hover table-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">#</th>
|
<th scope="col">#</th>
|
||||||
<th scope="col">Chat</th>
|
<th scope="col">Chat</th>
|
||||||
<th scope="col">Words said</th>
|
<th scope="col">Words said</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for chat in user_info.chats %}
|
{% for chat in user_info.chats %}
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{{loop.index}}</th>
|
<th scope="row">{{loop.index}}</th>
|
||||||
<td>{{chat[0]}}</td>
|
<td>{{chat[0]}}</td>
|
||||||
<td><span class="badge badge-secondary">{{chat[1]}} </span></td>
|
<td><span class="badge badge-secondary">{{chat[1]}} </span></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user