Nits
This commit is contained in:
parent
b31f97163f
commit
390204f479
|
@ -102,41 +102,39 @@ impl WebService {
|
||||||
}
|
}
|
||||||
body(class="container-fluid") {
|
body(class="container-fluid") {
|
||||||
header {
|
header {
|
||||||
h1 {
|
h1 { : format_args!("Information for IP address: {}", ip_str) }
|
||||||
: format_args!("Information for IP address: {}", ip_str)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
tr {
|
tr {
|
||||||
th { : "Announced" }
|
th { : "Announced" }
|
||||||
td { : format_args!("{}", map.get("announced")
|
td { : format_args!("{}", map.get("announced")
|
||||||
.unwrap().as_bool().unwrap() ) }
|
.unwrap().as_bool().unwrap()) }
|
||||||
}
|
}
|
||||||
@ if map.get("announced").unwrap().as_bool().unwrap() == true {
|
@ if map.get("announced").unwrap().as_bool().unwrap() == true {
|
||||||
tr {
|
tr {
|
||||||
th { : "First IP" }
|
th { : "First IP" }
|
||||||
td { : format_args!("{}", map.get("first_ip")
|
td { : format_args!("{}", map.get("first_ip")
|
||||||
.unwrap().as_str().unwrap() )}
|
.unwrap().as_str().unwrap()) }
|
||||||
}
|
}
|
||||||
tr {
|
tr {
|
||||||
th { : "Last IP" }
|
th { : "Last IP" }
|
||||||
td { : format_args!("{}", map.get("last_ip")
|
td { : format_args!("{}", map.get("last_ip")
|
||||||
.unwrap().as_str().unwrap() )}
|
.unwrap().as_str().unwrap()) }
|
||||||
}
|
}
|
||||||
tr {
|
tr {
|
||||||
th { : "AS Number" }
|
th { : "AS Number" }
|
||||||
td { : format_args!("{}", map.get("as_number")
|
td { : format_args!("{}", map.get("as_number")
|
||||||
.unwrap().as_u64().unwrap() )}
|
.unwrap().as_u64().unwrap()) }
|
||||||
}
|
}
|
||||||
tr {
|
tr {
|
||||||
th { : "AS Country code" }
|
th { : "AS Country code" }
|
||||||
td { : format_args!("{}", map.get("as_country_code")
|
td { : format_args!("{}", map.get("as_country_code")
|
||||||
.unwrap().as_str().unwrap() )}
|
.unwrap().as_str().unwrap()) }
|
||||||
}
|
}
|
||||||
tr {
|
tr {
|
||||||
th { : "AS Description" }
|
th { : "AS Description" }
|
||||||
td { : format_args!("{}", map.get("as_description")
|
td { : format_args!("{}", map.get("as_description")
|
||||||
.unwrap().as_str().unwrap() )}
|
.unwrap().as_str().unwrap()) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue