diff --git a/reports/map_popups.py b/reports/map_popups.py index e298be6..cfdd7ca 100644 --- a/reports/map_popups.py +++ b/reports/map_popups.py @@ -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( - "
" + "
" f"{password}" - f"
Verified: {verified}" - f"
Source: {sources}" + f"
" + f"{verified_label}" + "
" + f"
Source: {sources}
" "
" ) diff --git a/reports/static/report.css b/reports/static/report.css index 1d1939d..1698c09 100644 --- a/reports/static/report.css +++ b/reports/static/report.css @@ -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 */