Update public source
This commit is contained in:
+17
-6
@@ -105,10 +105,16 @@ def format_credentials(credentials):
|
||||
credential["password"]
|
||||
)
|
||||
|
||||
verified = (
|
||||
"Да"
|
||||
verified_class = (
|
||||
"verified"
|
||||
if credential["verified"]
|
||||
else "Нет"
|
||||
else "unverified"
|
||||
)
|
||||
|
||||
verified_label = (
|
||||
"Проверен"
|
||||
if credential["verified"]
|
||||
else "Не проверен"
|
||||
)
|
||||
|
||||
sources = ", ".join(
|
||||
@@ -117,10 +123,15 @@ def format_credentials(credentials):
|
||||
) or "—"
|
||||
|
||||
items.append(
|
||||
"<div class=\"map-popup-password\">"
|
||||
"<div "
|
||||
f"class=\"map-popup-password "
|
||||
f"map-popup-password-{verified_class}\">"
|
||||
f"<b>{password}</b>"
|
||||
f"<br>Verified: {verified}"
|
||||
f"<br>Source: {sources}"
|
||||
f"<div class=\"map-popup-password-status "
|
||||
f"map-popup-password-status-{verified_class}\">"
|
||||
f"{verified_label}"
|
||||
"</div>"
|
||||
f"<div>Source: {sources}</div>"
|
||||
"</div>"
|
||||
)
|
||||
|
||||
|
||||
@@ -1530,6 +1530,53 @@ body .maplibregl-popup-content {
|
||||
0 8px 24px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
body .maplibregl-popup-content .map-popup-password {
|
||||
margin-top: 6px;
|
||||
|
||||
padding: 7px 9px;
|
||||
|
||||
border: 1px solid var(--border);
|
||||
|
||||
border-radius: 6px;
|
||||
|
||||
background: rgba(0, 0, 0, 0.12);
|
||||
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
|
||||
body .maplibregl-popup-content
|
||||
.map-popup-password-verified {
|
||||
border-color: rgba(69, 212, 131, 0.35);
|
||||
|
||||
background: rgba(69, 212, 131, 0.08);
|
||||
}
|
||||
|
||||
|
||||
body .maplibregl-popup-content
|
||||
.map-popup-password-verified > b {
|
||||
color: #45d483;
|
||||
}
|
||||
|
||||
|
||||
body .maplibregl-popup-content
|
||||
.map-popup-password-status {
|
||||
margin-top: 3px;
|
||||
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
body .maplibregl-popup-content
|
||||
.map-popup-password-status-verified {
|
||||
color: #45d483;
|
||||
}
|
||||
|
||||
|
||||
body .maplibregl-popup-content
|
||||
.map-popup-password-status-unverified {
|
||||
color: #8b98a6;
|
||||
}
|
||||
|
||||
/* Popup arrow */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user