Adding site-health and noscrape support.
This commit is contained in:
parent
1bac9fb268
commit
a69a9d2278
15 changed files with 1025 additions and 61 deletions
33
view/health_details.tpl
Normal file
33
view/health_details.tpl
Normal file
|
@ -0,0 +1,33 @@
|
|||
<h1>
|
||||
<span class="health $health_name">♥</span> $name<br>
|
||||
<sup><a href="$base_url">$base_url</a></sup>
|
||||
</h1>
|
||||
|
||||
<p><a href="/health">« Back to index</a></p>
|
||||
|
||||
<div class="meta">
|
||||
<h3>General information</h3>
|
||||
<div class="users">$users users</div>
|
||||
<div class="version">Friendica $version</div>
|
||||
<div class="first_noticed">First noticed: $dt_first_noticed</div>
|
||||
<div class="last_seen">Last update: $dt_last_seen</div>
|
||||
</div>
|
||||
|
||||
<div class="security">
|
||||
<h3>Security</h3>
|
||||
<div class="ssl_state">HTTPS: $ssl_state</div>
|
||||
</div>
|
||||
|
||||
<div class="performance">
|
||||
<h3>Performance information</h3>
|
||||
<div style="float:left;margin-right:30px;padding-top:20px;">
|
||||
<div class="probe_speed">Probe speed: $avg_probe_timems</div>
|
||||
<div class="photo_speed">Photo speed: $avg_photo_timems</div>
|
||||
<div class="profile_speed">Profile speed: $avg_profile_timems</div>
|
||||
<div class="scrape_speed">Scrape speed: $avg_scrape_timems</div>
|
||||
<div class="submit_speed">Submit speed: $avg_submit_timems</div>
|
||||
<span class="health perfect">$no_scrape_support</span>
|
||||
</div>
|
||||
<div id="probe-chart" class="speed-chart">Probe speed</div>
|
||||
<div id="scrape-chart" class="speed-chart">Submit speed</div>
|
||||
</div>
|
10
view/health_search.tpl
Normal file
10
view/health_search.tpl
Normal file
|
@ -0,0 +1,10 @@
|
|||
<h1>Search your site</h1>
|
||||
<form method="GET">
|
||||
<label>Your site URL:</label>
|
||||
<input type="text" name="s" placeholder="example.com" value="$searched" />
|
||||
<input type="submit" value="Search" />
|
||||
</form>
|
||||
|
||||
<p><a href="/health">« Back to index</a></p>
|
||||
<h1>Search results</h1>
|
||||
<div class="result-sites">$result</div>
|
14
view/health_summary.tpl
Normal file
14
view/health_summary.tpl
Normal file
|
@ -0,0 +1,14 @@
|
|||
<h1>Search your site</h1>
|
||||
<form method="GET">
|
||||
<label>Your site URL:</label>
|
||||
<input type="text" name="s" placeholder="example.com" />
|
||||
<input type="submit" value="Search" />
|
||||
</form>
|
||||
|
||||
<h1>Healthy public sites</h1>
|
||||
<p>
|
||||
These are sites with their registration set to an open policy and a decent health score.<br>
|
||||
Not on the list: try searching.<br>
|
||||
More info: ask <a href="https://fc.oscp.info/profile/beanow">Beanow</a>.
|
||||
</p>
|
||||
<div class="public-sites">$public_sites</div>
|
|
@ -1587,3 +1587,17 @@ input#dfrn-url {
|
|||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.health{font-size:120%; vertical-align:bottom;}
|
||||
.health.very-bad{ color:#f99; }
|
||||
.health.bad{ color:#f1ba7a; }
|
||||
.health.neutral{ color:#e6e782; }
|
||||
.health.ok{ color:#bef273; }
|
||||
.health.good{ color:#7cf273; }
|
||||
.health.perfect{ color:#33ff80; }
|
||||
|
||||
.speed-chart{
|
||||
float:left;
|
||||
width:480px;
|
||||
height:320px;
|
||||
text-align:center;
|
||||
}
|
2
view/versions.tpl
Normal file
2
view/versions.tpl
Normal file
|
@ -0,0 +1,2 @@
|
|||
<h1>Used versions</h1>
|
||||
<div class="version-list">$versions</div>
|
Loading…
Add table
Add a link
Reference in a new issue