mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-28 17:12:13 +00:00
dd7ffe0515
Instead of using external CDNs for Bootstrap and FontAwesome, this patch makes Alertmanager serve these libraries itself.
21 lines
763 B
HTML
21 lines
763 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>Alertmanager</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
//If there is no trailing slash at the end of the path in the url,
|
|
// add one. This ensures assets like script.js` are loaded properly
|
|
if (window.location.pathname.endsWith('/') === false) {
|
|
window.location.pathname = window.location.pathname + '/';
|
|
console.log('added slash');
|
|
}
|
|
</script>
|
|
<script src="script.js"></script>
|
|
<script>Elm.Main.embed(document.body, { production: true })</script>
|
|
</body>
|
|
</html>
|