summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-05-29 05:43:59 -0500
committerZach van Rijn <me@zv.io>2021-05-29 05:43:59 -0500
commit2f98767a039360b903b01a16efa67dd7a24a4155 (patch)
treead26046284d31e275ed8a29dbcb771bf9bdab667
parent2bbe6b67cf3c74addb6ec1693e8b95439822bd72 (diff)
downloadsite-ng-2f98767a039360b903b01a16efa67dd7a24a4155.tar.gz
site-ng-2f98767a039360b903b01a16efa67dd7a24a4155.tar.bz2
site-ng-2f98767a039360b903b01a16efa67dd7a24a4155.tar.xz
site-ng-2f98767a039360b903b01a16efa67dd7a24a4155.zip
Populate mirrors list dynamically.
-rw-r--r--src/mirrors/index.html120
1 files changed, 4 insertions, 116 deletions
diff --git a/src/mirrors/index.html b/src/mirrors/index.html
index 8b6ed5e..b1d7d19 100644
--- a/src/mirrors/index.html
+++ b/src/mirrors/index.html
@@ -40,122 +40,7 @@ __HEADER__
</div>
<div class="row">
<div class="col-12 col-xl-10 offset-xl-1">
- <table class="table cart-table">
- <thead>
- <tr>
- <th scope="col"><!-- country flag --></th>
- <th scope="col">Location</th>
- <th scope="col">Name</th>
- <th scope="col">Speed</th>
- <th scope="col">Freshness</th>
- <th scope="col">Uptime</th>
- <th scope="col">Sponsor</th>
- <th scope="col">Protocol</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td colspan="8"><strong>Official</strong>&nbsp;&mdash;&nbsp;Part of Adélie's core infrastructure.</td>
- </tr>
- <tr>
- <td>
- <img src="../assets/images/flags/w40-webp/us.webp" alt="">
- </td>
- <td>Texas,<br />USA</td>
- <td>us1-distfiles</td>
- <td>1 Gbps</td>
- <td>0 days, 00:00:00</td>
- <td>0 days, 00:00:00</td>
- <td>Adélie Linux</td>
- <td>
- <strong>
- <a href="http://distfiles.adelielinux.org/">http</a><br />
- <a href="https://distfiles.adelielinux.org/">https</a><br />
- <a href="rsync://distfiles.adelielinux.org/distfiles">rsync</a>
- </strong>
- </td>
- </tr>
- <tr>
- <td colspan="8"><strong>Affiliated</strong>&nbsp;&mdash;&nbsp;Operated by Adélie's developers and friends.</td>
- </tr>
- <tr>
- <td>
- <img src="../assets/images/flags/w40-webp/de.webp" alt="">
- </td>
- <td>Nuremberg,<br />Germany</td>
- <td>eu1-distfiles</td>
- <td>1 Gbps</td>
- <td>0 days, 00:00:00</td>
- <td>0 days, 00:00:00</td>
- <td>Leuhta Labs</td>
- <td>
- <strong>
- <a href="http://eu1-distfiles.adelielinux.org/">http</a><br />
- <a href="https://eu1-distfiles.adelielinux.org/">https</a><br />
- <a href="rsync://eu1-distfiles.adelielinux.org/distfiles/">rsync</a><br />
- </strong>
- </td>
- </tr>
- <tr>
- <td>
- <img src="../assets/images/flags/w40-webp/us.webp" alt="">
- </td>
- <td>Pennsylvania,<br />USA</td>
- <td>us2-distfiles</td>
- <td>100 Mbps</td>
- <td>0 days, 00:00:00</td>
- <td>0 days, 00:00:00</td>
- <td>ionFish Group</td>
- <td>
- <strong>
- <a href="">http</a><br />
- <a href="">https</a><br />
- <a href="">rsync</a><br />
- <a href="">ftp</a>
- </strong>
- </td>
- </tr>
- <tr>
- <td colspan="8"><strong>Third-Party</strong>&nbsp;&mdash;&nbsp;Community-managed mirrors over which we have no control.</td>
- </tr>
- <tr>
- <td>
- <img src="../assets/images/flags/w40-webp/us.webp" alt="">
- </td>
- <td>Illinois,<br />USA</td>
- <td>servercentral</td>
- <td>10 Gbps</td>
- <td>0 days, 00:00:00</td>
- <td>0 days, 00:00:00</td>
- <td>ServerCentral<br />Turing Group</td>
- <td>
- <strong>
- <a href="http://mirrors.servercentral.com/adelie/">http</a><br />
- <a href="https://mirrors.servercentral.com/adelie/">https</a>
- </strong>
- </td>
- </tr>
- <tr>
- <td>
- <img src="../assets/images/flags/w40-webp/us.webp" alt="">
- </td>
- <td>Indiana,<br />USA</td>
- <td>purdue</td>
- <td>10 Gbps</td>
- <td>0 days, 00:00:00</td>
- <td>0 days, 00:00:00</td>
- <td>Purdue Linux<br />Users Group</td>
- <td>
- <strong>
- <a href="http://plug-mirror.rcac.purdue.edu/adelie/">http</a><br />
- <a href="https://plug-mirror.rcac.purdue.edu/adelie/">https</a><br />
- <a href="rsync://plug-mirror.rcac.purdue.edu/adelie/">rsync</a><br />
- <a href="ftp://plug-mirror.rcac.purdue.edu/adelie/">ftp</a>
- </strong>
- </td>
- </tr>
- </tbody>
- </table>
+ <table class="table cart-table" id="mirrorstatus"><!-- populated by js from cron job --></table>
</div>
</div><!-- end row -->
</div><!-- end container -->
@@ -164,4 +49,7 @@ __HEADER__
__INDEPENDENT_SHADE__
__FOOTER__
</body>
+ <script type="text/javascript">
+ $("#mirrorstatus").load('https://infra.adelielinux.org/status.html');
+ </script>
</html>