Format Join device ids

This commit is contained in:
JonnyWong16 2016-05-18 19:31:21 -07:00
parent 9e764248d3
commit 65eab801e8
2 changed files with 12 additions and 1 deletions

View file

@ -2954,4 +2954,14 @@ a.no-highlight:hover {
.datatable-wrap {
min-width: 150px;
max-width: 250px;
}
.inline-pre {
font-family: monospace;
margin: 0 2px;
padding: 2px 5px;
font-size: 13px;
color: #fff;
background-color: #555;
border: 0px solid #444;
border-radius: 3px;
}

View file

@ -2634,7 +2634,8 @@ class JOIN(object):
return {'': ''}
def return_config_options(self):
devices = '<br>'.join(['%s: %s' % (v, k) for k, v in self.get_devices().iteritems() if k])
devices = '<br>'.join(['%s: <span class="inline-pre">%s</span>'
% (v, k) for k, v in self.get_devices().iteritems() if k])
if not devices:
devices = 'Enter your Join API key to load your device list.'