2021-10-15 14:08:27 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2022-01-13 23:39:39 +00:00
|
|
|
<title>{{SITE_NAME}}</title>
|
2021-12-27 05:07:19 +00:00
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
<h5>Vote Info</h5>
|
|
|
|
|
|
|
|
<form action="/admin/alt_votes" method="get" class="mb-6">
|
|
|
|
<label for="link-input">Usernames</label>
|
2021-12-28 12:41:26 +00:00
|
|
|
<input autocomplete="off" id="link-input" type="text" class="form-control mb-2" name="u1" value="{{u1.username if u1 else ''}}" placeholder="User 1">
|
|
|
|
<input autocomplete="off" id="link-input" type="text" class="form-control mb-2" name="u2" value="{{u2.username if u2 else ''}}" placeholder="User 2">
|
2022-03-26 12:04:28 +00:00
|
|
|
<input type="submit" value="Submit" class="btn btn-primary">
|
2021-10-15 14:08:27 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
{% if u1 and u2 %}
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Analysis</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-03 10:59:29 +00:00
|
|
|
<div class="overflow-x-auto"><table class="table table-striped mb-5">
|
2021-10-15 14:08:27 +00:00
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>@{{u1.username}} only(% unique)</th>
|
|
|
|
<th>Both</th>
|
|
|
|
<th>@{{u2.username}} only (% unique)</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td><b>Post Upvotes</b></td>
|
|
|
|
<td>{{data['u1_only_post_ups']}} ({{data['u1_post_ups_unique']}}%)</td>
|
|
|
|
<td>{{data['both_post_ups']}}</td>
|
|
|
|
<td>{{data['u2_only_post_ups']}} ({{data['u2_post_ups_unique']}}%)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>Post Downvotes</b></td>
|
|
|
|
<td>{{data['u1_only_post_downs']}} ({{data['u1_post_downs_unique']}}%)</td>
|
|
|
|
<td>{{data['both_post_downs']}}</td>
|
|
|
|
<td>{{data['u2_only_post_downs']}} ({{data['u2_post_downs_unique']}}%)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>Comment Upvotes</b></td>
|
|
|
|
<td>{{data['u1_only_comment_ups']}} ({{data['u1_comment_ups_unique']}}%)</td>
|
|
|
|
<td>{{data['both_comment_ups']}}</td>
|
|
|
|
<td>{{data['u2_only_comment_ups']}} ({{data['u2_comment_ups_unique']}}%)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b>Comment Downvotes</b></td>
|
|
|
|
<td>{{data['u1_only_comment_downs']}} ({{data['u1_comment_downs_unique']}}%)</td>
|
|
|
|
<td>{{data['both_comment_downs']}}</td>
|
|
|
|
<td>{{data['u2_only_comment_downs']}} ({{data['u2_comment_downs_unique']}}%)</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h2>Link Accounts</h2>
|
|
|
|
|
|
|
|
{% if u2 in u1.alts %}
|
|
|
|
<p>Accounts are known alts of eachother.</p>
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<p>Two accounts controlled by different people should have most uniqueness percentages at or above 70-80%</p>
|
|
|
|
<p>A sockpuppet account will have its uniqueness percentages significantly lower.</p>
|
|
|
|
|
2021-12-30 05:27:22 +00:00
|
|
|
<a role="button" class="btn btn-secondary" onclick="document.getElementById('linkbtn').classList.toggle('d-none');">Link Accounts</a>
|
2021-10-15 14:08:27 +00:00
|
|
|
<form action="/admin/link_accounts" method="post">
|
2022-03-19 16:19:02 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
<input type="hidden" name="u1" value="{{u1.id}}">
|
|
|
|
<input type="hidden" name="u2" value="{{u2.id}}">
|
2022-03-26 12:04:28 +00:00
|
|
|
<input type="submit" id="linkbtn" class="btn btn-primary d-none" value="Confirm Link: {{u1.username}} and {{u2.username}}">
|
2021-10-15 14:08:27 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
2021-07-21 01:12:26 +00:00
|
|
|
{% endblock %}
|