Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
check_roa/templates/render.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
51 lines (47 sloc)
2.23 KB
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<div> | |
<p>Proposed ROA Prefix = {{ roa_info[0] }}</p> | |
<p>Max Length = {{ roa_info[1]}}</p> | |
<p>and origin ASN = {{roa_info[2] }}</p> | |
</div> | |
<table> | |
<thead> | |
<tr> | |
<th style="white-space pre-line;text-align: left">The first row is the prefix specified in the proposed ROA. | |
Subsequent lines list more specifics that are seen in the global routing table.</th> | |
<th style="white-space pre-line;text-align: left">If you create the proposed ROA, this is how it would be evaluated for each prefix.</th> | |
<th style="white-space pre-line;text-align: left">For this prefix, this is the origin ASN as seen in the global Internet.</th> | |
<th style="white-space pre-line;text-align: left">This is the status of this prefix due to an existing ROA. </th> | |
</tr> | |
</thead> | |
<tbody> | |
{% for item in items %} | |
<tr> | |
<td style="text-align: center; border: 1px solid black;">{{ item[0] }}</td> | |
{% if item[1] == "invalid" %} | |
<td style="text-align: center; border: 1px solid black; background-color:red;">{{ item[1] }}</td> | |
{% elif item[1] =="valid" %} | |
<td style="text-align: center; border: 1px solid black; background-color:green">{{ item[1] }}</td> | |
{% else %} | |
<td style="text-align: center; border: 1px solid black; background-color:yellow">{{ item[1] }}</td> | |
{% endif %} | |
<td style="text-align: center; border: 1px solid black;">{{ item[2] }}</td> | |
{% if item[3] == "valid" %} | |
<td style="text-align: center; border: 1px solid black; background-color:green">{{ item[3] }}</td> | |
{% elif item[3] == "invalid" %} | |
<td style="text-align: center; border: 1px solid black; background-color:red">{{ item[3] }}</td> | |
{% else %} | |
<td style="text-align: center; border: 1px solid black; background-color:yellow;">{{ item[3] }}</td> | |
{% endif %} | |
</tr> | |
{% endfor %} | |
</tbody> | |
</table> | |
</body> | |
</html> |