Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre-antoine Comby
winaps-server
Commits
2a399a7c
Commit
2a399a7c
authored
May 28, 2019
by
Pierre-antoine Comby
Browse files
format maker popup
parent
dfbe8a78
Changes
1
Hide whitespace changes
Inline
Side-by-side
maps/models.py
View file @
2a399a7c
...
...
@@ -19,4 +19,8 @@ class Mesure(models.Model):
@
property
def
popupContent
(
self
):
return
"<p>{}</p><p>{}</p>"
.
format
(
self
.
ssid
,
self
.
puissance
)
ret
=
""
ret
+=
'<a href="/maps/ssid/{ssid}">{ssid}</a><br>'
.
format
(
ssid
=
self
.
ssid
)
ret
+=
'<a href="/maps/bssid/{bssid}">{bssid}</a><br>'
.
format
(
bssid
=
self
.
bssid
)
ret
+=
'{} dBm<br>'
.
format
(
self
.
puissance
)
return
ret
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment