diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-11-29 09:28:44 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-12-01 18:22:16 +0000 |
commit | 44b7203dc9fe828e917eb10e8af98ca366ac53b0 (patch) | |
tree | 8c79c1d0923576da3303956c18c13536bdc6d086 /index.tpl | |
download | alpine-mirror-status-44b7203dc9fe828e917eb10e8af98ca366ac53b0.tar.bz2 alpine-mirror-status-44b7203dc9fe828e917eb10e8af98ca366ac53b0.tar.xz |
Initial commit
Diffstat (limited to 'index.tpl')
-rw-r--r-- | index.tpl | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/index.tpl b/index.tpl new file mode 100644 index 0000000..ac381af --- /dev/null +++ b/index.tpl @@ -0,0 +1,123 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Mirror health</title> + <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css"> <!--[if lte IE 8]> + <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-old-ie-min.css"> + <![endif]--> + <!--[if gt IE 8]><!--> + <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-min.css"> + <!--<![endif]--> + <style> + html, body { + margin: 0; + padding: 0; + height: 100%; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, + sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + color: #526066; + font-size: 1.0em; + } + div#wrapper { + min-height: 100%; + position: relative; + } + header { + border-bottom: 1px solid #eaecef; + } + .logo { + padding:1em; + } + #content { + margin: 0 auto; + padding: 0em 1em 2em 1em; + max-width: 1080px; + padding-bottom: 1em; + } + footer { + background: #111; + color: #888; + text-align: center; + position: absolute; + bottom: 0; + width: 100%; + padding-top: 0.5em; + padding-bottom: 0.5em; + font-size: 0.8em; + } + .last-updated { + color: #ccc; + margin: 1em; + margin-bottom: 2em; + } + .mirror-meta { + margin: 1em; + margin-left: 0; + } + .status-ok { + color: #228B22; + font-weight: bold; + } + .status-na { + color: #ccc; + } + .status-warn { + color: #DAA520; + font-weight: bold; + } + .status-error, .status-unk { + color: #8B0000; + font-weight: bold; + } + </style> +</head> + +<body> + <div id="wrapper"> + <header class="pure-g"> + <div class="pure-u-1 pure-u-lg-4-24"> + <div class="logo"> + <a href="/"><img src="https://alpinelinux.org/alpinelinux-logo.svg" alt="Alpine Logo" class="pure-img"></a> + </div> + </div> + </header> + <div id="content"> + <div class="pure-g"> + {{#mirrors}} + <div class="pure-u-1"> + <h3>{{url}}</h3> + <div class="mirror-meta"> + <ul class="mirror-meta"> + <li>Generated in {{duration}} seconds.</li> + <li>Found {{count}} indexes.</li> + </ul> + </div> + <table class="pure-table pure-table-striped"> + <thead> + <tr> + {{#thead}} + <th>{{.}}</th> + {{/thead}} + </tr> + </thead> + <tbody> + {{#tbody}} + <tr> + {{#row}} + <td class="{{class}}">{{text}}</td> + {{/row}} + </tr> + {{/tbody}} + </tbody> + </table> + </div> + {{/mirrors}} + </div> + <div class="last-updated">Last updated: <span>{{lupdate}}</span> UTC</div> + </div> + <footer>© Copyright 2017 Alpine Linux Development Team all rights reserved</footer> + </div> +</body> +</html>
\ No newline at end of file |