-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display monitored urls using askama template
- Loading branch information
Showing
7 changed files
with
33 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
<title>Spyhole</title> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<link rel="stylesheet" href="/assets/styles.css" /> | ||
{% block head %}{% endblock %} | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<header> | ||
|
@@ -36,9 +36,11 @@ <h1>SPYHOLE - Simple down detector</h1> | |
</svg> | ||
</button> | ||
</header> | ||
{% block content %} | ||
<p>Loading monitored urls...</p> | ||
{% endblock %} | ||
<article> | ||
<ul id="list-container" hx-get="/monitored_urls" hx-trigger="load" hx-swap="innerHTML"> | ||
<li class="loading">Loading monitored URLs...</li> | ||
</ul> | ||
</article> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% for url in urls %} | ||
<li class="monitored-url"> | ||
<a href="{{ url.url }}" target="_blank" rel="noreferrer">{{ url.url }}</a> | ||
<span class="status-badge up-{{ url.status }}"></span> | ||
</li> | ||
{% endfor %} |