display a placeholder if device name is empty

This commit is contained in:
Jakob Ketterl 2021-05-14 15:52:18 +02:00
parent 4aba612760
commit ee8688345e

View File

@ -85,7 +85,7 @@ class SdrDeviceListController(AuthorizationMixin, BreadcrumbMixin, WebpageContro
</div> </div>
</li> </li>
""".format( """.format(
device_name=config["name"], device_name=config["name"] if config["name"] else "[Unnamed device]",
device_link="{}settings/sdr/{}".format(self.get_document_root(), quote(device_id)), device_link="{}settings/sdr/{}".format(self.get_document_root(), quote(device_id)),
state=state_info, state=state_info,
additional_info=additional_info, additional_info=additional_info,