-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
171 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
date,UP | ||
2024-01-22T13:26:59,True | ||
2024-01-22T16:02:54,True | ||
2024-01-22T16:17:41,True |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
date,UP | ||
2024-01-22T14:02:32,True | ||
2024-01-22T14:21:28,True | ||
2024-01-22T16:59:51,True |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ date,UP | |
2024-01-22T12:32:30,True | ||
2024-01-22T12:32:35,False | ||
2024-01-22T14:21:46,True | ||
2024-01-22T15:05:02,True |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
date,UP | ||
2024-01-22T14:15:34,False | ||
2024-01-22T15:11:51,False |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
date,UP | ||
2024-01-22T17:00:28,True |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
table{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
|
||
border-collapse: collapse; | ||
} | ||
|
||
/* Default link style */ | ||
a { | ||
color: blue; | ||
text-decoration: none; /* Remove underline */ | ||
} | ||
|
||
/* Visited link style */ | ||
a:visited { | ||
color: blue; /* Set the color for visited links */ | ||
} | ||
|
||
h3{ | ||
font-style: italic; | ||
} | ||
|
||
h4{ | ||
color: rgb(50, 56, 61); | ||
} | ||
|
||
th, td{ | ||
text-align: center; | ||
margin-top:12px; | ||
border-bottom: 1px solid #adacac; | ||
padding-left: 10px; | ||
} | ||
|
||
.report-up{ | ||
color: green; | ||
} | ||
|
||
.report-down{ | ||
color: red; | ||
} | ||
|
||
.report-none{ | ||
color: lightslategray; | ||
align-items: center; | ||
} | ||
|
||
.thumb{ | ||
background-color: lightgray; | ||
width: 70px; | ||
font-size: 20px; | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
border-radius: 15px; | ||
border-style:solid; | ||
border-width: 2px; | ||
|
||
margin: 0 auto; | ||
} | ||
|
||
.line-sep{ | ||
display: block; | ||
border-bottom: 1px solid #dddddd; /* Add a bottom border for the divider */ | ||
margin-bottom: 4px; /* Adjust margin for better spacing */ | ||
background-color: red; | ||
} |
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 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,42 @@ | ||
{% extends "base.html" %} | ||
{% block head %} | ||
<title>ServiceList</title> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='styleItem.css') }}"> | ||
<link rel="stylesheet" href="{{ url_for('static', filename='styleServiceList.css') }}"> | ||
<link rel="icon" type="image/x-icon" href="/static/ico/icoDOWN.png"> | ||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
<table border="0"> | ||
|
||
<tr> | ||
<th> <h3>Service</h3> </th> | ||
<th> <h3>URL</h3> </th> | ||
<th> <h3>Reported Status by Users</h3> </th> | ||
<th> <h3>Status</h3> </th> | ||
</tr> | ||
{% for serviceInfo in serviceInfo %} | ||
<tr> | ||
|
||
|
||
<th> <h4>{{ serviceInfo["service"] }}</h4> </th> | ||
<th> <h5><a href={{ serviceInfo["url"] }}>{{ serviceInfo["url"] }}</a></h5> </th> | ||
{% if serviceInfo["reportedStatus"] %} | ||
<th class="report-up"> <div class="thumb"> {{ serviceInfo["reportedStatus"] }} </div> </th> | ||
{% elif serviceInfo["reportedStatus"] == False %} | ||
<th class="report-down"> <div class="thumb"> {{ serviceInfo["reportedStatus"] }} </div> </th> | ||
{% else %} | ||
<th class="report-none"> <div class="thumb"> {{ serviceInfo["reportedStatus"] }} </div> </th> | ||
{% endif %} | ||
|
||
{% if serviceInfo["Status"] %} | ||
<th id="up"> Up </th> | ||
{% else %} | ||
<th id="down"> Down</th> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
|
||
</table> | ||
{% endblock %} |