2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
2022-11-14 17:32:13 +00:00
{% block pagetitle %}Alt Vote Analysis{% endblock %}
2022-05-04 23:09:46 +00:00
{% block content %}
2022-10-29 00:38:39 +00:00
< h5 class = "mt-3" > Vote Info< / h5 >
2022-05-04 23:09:46 +00:00
2022-12-30 17:20:10 +00:00
< form method = "get" class = "mb-6" >
2022-05-04 23:09:46 +00:00
< label for = "link-input" > Usernames< / label >
< 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-12-30 12:14:18 +00:00
< input type = "submit" data-nonce = "{{g.nonce}}" data-onclick = "disable(this)" value = "Submit" class = "btn btn-primary" >
2022-05-04 23:09:46 +00:00
< / form >
{% if u1 and u2 %}
< h2 > Analysis< / h2 >
< div class = "overflow-x-auto" > < table class = "table table-striped mb-5" >
< thead class = "bg-primary text-white" >
< tr >
< th > < / th >
2022-10-28 20:08:32 +00:00
< th > @{{u1.username}} only (% unique)< / th >
2022-05-04 23:09:46 +00:00
< 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 >
2022-11-14 17:32:13 +00:00
{% if v.admin_level >= PERMS['USER_LINK'] %}
< h2 > Link Accounts< / h2 >
2022-05-04 23:09:46 +00:00
2023-01-25 02:51:48 +00:00
{% if u2 in get_alt_graph(u1.id) %}
2022-11-14 17:32:13 +00:00
< p > Accounts are < a href = "/@{{u1.username}}/alts" > known alts< / a > of each other.< / p >
{% else %}
2022-05-04 23:09:46 +00:00
2022-11-14 17:32:13 +00:00
< 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 >
2022-05-04 23:09:46 +00:00
2022-12-30 12:14:18 +00:00
< button class = "btn btn-danger" data-areyousure = "postToastReload(this,'/@{{u1.username}}/alts/?other_username={{u2.username}}')" data-nonce = "{{g.nonce}}" data-onclick = "areyousure(this)" > Link {{u1.username}} and {{u2.username}}< / button >
2022-11-14 17:32:13 +00:00
{% endif %}
2022-05-04 23:09:46 +00:00
{% endif %}
{% endif %}
2022-10-28 20:08:32 +00:00
{% endblock %}