Format Join device ids
This commit is contained in:
@@ -2954,4 +2954,14 @@ a.no-highlight:hover {
|
|||||||
.datatable-wrap {
|
.datatable-wrap {
|
||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
max-width: 250px;
|
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;
|
||||||
}
|
}
|
@@ -2634,7 +2634,8 @@ class JOIN(object):
|
|||||||
return {'': ''}
|
return {'': ''}
|
||||||
|
|
||||||
def return_config_options(self):
|
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:
|
if not devices:
|
||||||
devices = 'Enter your Join API key to load your device list.'
|
devices = 'Enter your Join API key to load your device list.'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user