Enclosed show/hide link for stats about Threads in “[]”; added a transparent separator between stats “blocks”
This commit is contained in:
parent
6259a63552
commit
9207497413
1 changed files with 5 additions and 1 deletions
|
@ -157,7 +157,7 @@ function presub() {
|
|||
$res=mysqli_query($link,'SELECT COUNT(ID) AS tinsts, SUM(UserCount) AS tusers, SUM(StatusCount) AS tstatuses, SUM(ActiveUsersMonth) AS tactusers FROM Instances WHERE Instances.IsMastodon=1 AND Instances.LastOkCheckTS>='.$graceline) or muorimeglio(__LINE__.': '.mysqli_error($link),true);
|
||||
$row=mysqli_fetch_assoc($res);
|
||||
echo(_('<div id="help" class="hiddiv"><p class="intro">This search engine for Mastodon instances is based on a database that gets updated by our crawler every night (CET). Instances are considered new for 30 days after they are discovered. When an instance has not responded to our daily checks for more than 30 days it’s no longer considered in statistics and searches and it gets checked only on the first of the month, rather than daily, until it possibly responds again. “Random ordering” of results varies daily.</p><p class="intro">Default search criteria reflect our fondness for a decentralized and egalitarian Fediverse and our attempt to exclude instances accepting fascist, racist, sexist, ableist or sovereignist contents by marking them as noxious.</p></div>').N);
|
||||
printf(_('<p class="intro">We currently count <span class="statd">%s</span> Mastodon instances, with <span class="statd">%s</span> users (<span class="statd">%s</span> active during last month) and <span class="statd">%s</span> published statuses. <a id="msswitch" onclick="swmetastats();" style="cursor:pointer;">Show Threads suspension / limitation stats</a>.</p>').N, fnum($row['tinsts'],0,$dlang), fnum($row['tusers'],0,$dlang), fnum($row['tactusers'],0,$dlang), fnum($row['tstatuses'],0,$dlang));
|
||||
printf(_('<p class="intro">We currently count <span class="statd">%s</span> Mastodon instances, with <span class="statd">%s</span> users (<span class="statd">%s</span> active during last month) and <span class="statd">%s</span> published statuses. [<a id="msswitch" onclick="swmetastats();" style="cursor:pointer;">Show Threads suspension / limitation stats</a>].</p>').N, fnum($row['tinsts'],0,$dlang), fnum($row['tusers'],0,$dlang), fnum($row['tactusers'],0,$dlang), fnum($row['tstatuses'],0,$dlang));
|
||||
|
||||
$metastats['known']=[
|
||||
'instances'=>$row['tinsts']-$metastats['unknown']['instances'],
|
||||
|
@ -211,6 +211,8 @@ function presub() {
|
|||
|
||||
<table class="ms_cont"><tr><td class="ms_suspending" style="width:'.$metastats['suspending']['kiperc'].'%"></td><td class="ms_silencing" style="width:'.$metastats['silencing']['kiperc'].'%"></td><td class="ms_notsuspsil" style="width:'.$metastats['notsuspsil']['kiperc'].'%"></td></tr></table>
|
||||
|
||||
<div class="sep"></div>
|
||||
|
||||
<table class="ms_leg_tab"><tr><td class="ms_suspending_u"></td><td class="ms_leg_td"> '._('Users on instances suspending Threads').': '.fnum($metastats['suspending']['users'],0,$dlang).' / '.fnum($metastats['known']['users'],0,$dlang).' ('.fnum($metastats['suspending']['kuperc'],2,$dlang).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_silencing_u"></td><td class="ms_leg_td"> '._('Users on instances limiting Threads').': '.fnum($metastats['silencing']['users'],0,$dlang).' / '.fnum($metastats['known']['users'],0,$dlang).' ('.fnum($metastats['silencing']['kuperc'],2,$dlang).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_suspending_u"></td><td class="ms_leg_td">+</td><td class="ms_silencing_u"></td><td class="ms_leg_td"> '._('Users on instances suspending or limiting Threads').': '.fnum($metastats['suspending']['users']+$metastats['silencing']['users'],0,$dlang).' / '.fnum($metastats['known']['instances'],0,$dlang).' ('.fnum($metastats['suspending']['kuperc']+$metastats['silencing']['kuperc'],2,$dlang).'%)</td></tr></table>
|
||||
|
@ -228,6 +230,8 @@ function presub() {
|
|||
|
||||
<table class="ms_cont"><tr><td class="ms_suspending" style="width:'.$metastats['suspending']['iperc'].'%"></td><td class="ms_silencing" style="width:'.$metastats['silencing']['iperc'].'%"></td><td class="ms_notsuspsil" style="width:'.$metastats['notsuspsil']['iperc'].'%"></td><td class="ms_unknown" style="width:'.$metastats['unknown']['iperc'].'%"></td></tr></table>
|
||||
|
||||
<div class="sep"></div>
|
||||
|
||||
<table class="ms_leg_tab"><tr><td class="ms_suspending_u"></td><td class="ms_leg_td"> '._('Users on instances suspending Threads').': '.fnum($metastats['suspending']['users'],0,$dlang).' / '.fnum($row['tinsts'],0,$dlang).' ('.fnum($metastats['suspending']['uperc'],2,$dlang).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_silencing_u"></td><td class="ms_leg_td"> '._('Users on instances limiting Threads').': '.fnum($metastats['silencing']['users'],0,$dlang).' / '.fnum($row['tinsts'],0,$dlang).' ('.fnum($metastats['silencing']['uperc'],2,$dlang).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_suspending_u"></td><td class="ms_leg_td">+</td><td class="ms_silencing_u"></td><td class="ms_leg_td"> '._('Users on instances suspending or limiting Threads').': '.fnum($metastats['suspending']['users']+$metastats['silencing']['users'],0,$dlang).' / '.fnum($row['tinsts'],0,$dlang).' ('.fnum($metastats['suspending']['uperc']+$metastats['silencing']['uperc'],2,$dlang).'%)</td></tr></table>
|
||||
|
|
Loading…
Reference in a new issue