Skip to content

Commit d56d3cc

Browse files
committed
chg: [crawler dashboard] improve template
1 parent 0c395e7 commit d56d3cc

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

var/www/templates/crawler/crawler_splash/dashboard_crawler.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636

3737
<div class="card mt-1 mb-1">
3838
<div class="card-header text-white bg-dark">
39-
<h5><a class="text-info" href="{{ url_for('crawler_splash.crawlers_last_domains')}}?type=onion"><i class="fas fa-user-secret"></i> Onions Crawlers</a></h5>
39+
<h5><a class="text-white" href="{{ url_for('crawler_splash.crawlers_last_domains')}}?type=onion"><i class="fas fa-user-secret"></i> Onions Crawlers</a></h5>
4040
<div class="row">
4141
<div class="col-5">
4242
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=onion&up=True&date_from={{date}}&date_to={{date}}" class="badge badge-success" id="stat_onion_domain_up">{{ crawlers_latest_stats['onion']['up'] }}</a> <small>UP</small>
4343
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=onion&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-danger ml-md-3" id="stat_onion_domain_down">{{ crawlers_latest_stats['onion']['down'] }}</a> <small>DOWN</small>
4444
</div>
4545
<div class="col-7">
46-
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=onion&up=True&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-success" id="stat_onion_total">{{ crawlers_latest_stats['onion']['crawled'] }}</a> <small>Crawled</small>
46+
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=onion&up=True&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-primary" id="stat_onion_total">{{ crawlers_latest_stats['onion']['crawled'] }}</a> <small>Crawled</small>
4747
<span class="badge badge-warning ml-md-3" id="stat_onion_queue">{{ crawlers_latest_stats['onion']['queue'] }}</span> <small>Queue</small>
4848
</div>
4949
</div>
@@ -54,14 +54,14 @@ <h5><a class="text-info" href="{{ url_for('crawler_splash.crawlers_last_domains'
5454
<div class="col-xl-4">
5555
<div class="card mt-1 mb-1">
5656
<div class="card-header text-white bg-dark">
57-
<h5><a class="text-info" href="{{ url_for('crawler_splash.crawlers_last_domains')}}?type=i2p"><i class="fas fa-user-secret"></i> I2P Crawlers</a></h5>
57+
<h5><a class="text-white" href="{{ url_for('crawler_splash.crawlers_last_domains')}}?type=i2p"><i class="fas fa-user-secret"></i> I2P Crawlers</a></h5>
5858
<div class="row">
5959
<div class="col-5">
6060
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=i2p&up=True&date_from={{date}}&date_to={{date}}" class="badge badge-success" id="stat_i2p_domain_up">{{ crawlers_latest_stats['i2p']['up'] }}</a> <small>UP</small>
6161
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=i2p&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-danger ml-md-3" id="stat_i2p_domain_down">{{ crawlers_latest_stats['i2p']['down'] }}</a> <small>DOWN</small>
6262
</div>
6363
<div class="col-7">
64-
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=i2p&up=True&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-success" id="stat_i2p_total">{{ crawlers_latest_stats['i2p']['crawled'] }}</a> <small>Crawled</small>
64+
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=i2p&up=True&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-primary" id="stat_i2p_total">{{ crawlers_latest_stats['i2p']['crawled'] }}</a> <small>Crawled</small>
6565
<span class="badge badge-warning ml-md-3" id="stat_i2p_queue">{{ crawlers_latest_stats['i2p']['queue'] }}</span> <small>Queue</small>
6666
</div>
6767
</div>
@@ -71,14 +71,14 @@ <h5><a class="text-info" href="{{ url_for('crawler_splash.crawlers_last_domains'
7171
<div class="col-xl-4">
7272
<div class="card mt-1 mb-1">
7373
<div class="card-header text-white bg-dark">
74-
<h5><a class="text-info" href="{{ url_for('crawler_splash.crawlers_last_domains')}}?type=web"><i class="fab fa-html5"></i> Web Crawlers</a></h5>
74+
<h5><a class="text-white" href="{{ url_for('crawler_splash.crawlers_last_domains')}}?type=web"><i class="fab fa-html5"></i> Web Crawlers</a></h5>
7575
<div class="row">
7676
<div class="col-5">
7777
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=web&up=True&date_from={{date}}&date_to={{date}}" class="badge badge-success" id="stat_web_domain_up">{{ crawlers_latest_stats['web']['up'] }}</a> <small>UP</small>
7878
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=web&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-danger ml-md-3" id="stat_web_domain_down">{{ crawlers_latest_stats['web']['down'] }}</a> <small>DOWN</small>
7979
</div>
8080
<div class="col-7">
81-
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=web&up=True&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-success" id="stat_web_total">{{ crawlers_latest_stats['web']['crawled'] }}</a> <small>Crawled</small>
81+
<a href="{{ url_for('crawler_splash.domains_search_date') }}?type=web&up=True&down=True&date_from={{date}}&date_to={{date}}" class="badge badge-primary" id="stat_web_total">{{ crawlers_latest_stats['web']['crawled'] }}</a> <small>Crawled</small>
8282
<span class="badge badge-warning ml-md-3" id="stat_web_queue">{{ crawlers_latest_stats['web']['queue'] }}</span> <small>Queue</small>
8383
</div>
8484
</div>
@@ -220,6 +220,11 @@ <h5><a class="text-info" href="{{ url_for('crawler_splash.crawlers_last_domains'
220220
$('#stat_onion_total').text(data.stats['onion']['crawled']);
221221
$('#stat_onion_queue').text(data.stats['onion']['queue']);
222222

223+
$('#stat_i2p_domain_up').text(data.stats['i2p']['up']);
224+
$('#stat_i2p_domain_down').text(data.stats['i2p']['down']);
225+
$('#stat_i2p_total').text(data.stats['i2p']['crawled']);
226+
$('#stat_i2p_queue').text(data.stats['i2p']['queue']);
227+
223228
$('#stat_web_domain_up').text(data.stats['web']['up']);
224229
$('#stat_web_domain_down').text(data.stats['web']['down']);
225230
$('#stat_web_total').text(data.stats['web']['crawled']);

0 commit comments

Comments
 (0)