diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index 1d9c1e79..0505a2f6 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -929,6 +929,7 @@ class Device(Thing): "Cellphone": "bi bi-telephone", "HardDrive": "bi bi-hdd-stack", "SolidStateDrive": "bi bi-hdd", + "SolarPanel": "bi-solar-panel", } return types.get(self.type, '') diff --git a/ereuse_devicehub/static/css/devicehub.css b/ereuse_devicehub/static/css/devicehub.css index e82af14c..ee612cd5 100644 --- a/ereuse_devicehub/static/css/devicehub.css +++ b/ereuse_devicehub/static/css/devicehub.css @@ -42,4 +42,15 @@ } .printLabelForm { margin-left: 10px; -} \ No newline at end of file +} +.bi-solar-panel { + background-image: url("/static/img/solar-panel.png"); + background-repeat:no-repeat; + background-size: cover; + padding-left: 10px; + padding-right: 10px; + margin-right: 5px; + line-height: 17px; + font-size: 15px; + vertical-align: middle; +} diff --git a/ereuse_devicehub/static/img/solar-panel.png b/ereuse_devicehub/static/img/solar-panel.png new file mode 100644 index 00000000..95de3ed5 Binary files /dev/null and b/ereuse_devicehub/static/img/solar-panel.png differ