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>"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user