Commit 2a399a7c authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

format maker popup

parent dfbe8a78
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment