From 7bfe78fc522eecfcd0f6478af56680786d3198ab Mon Sep 17 00:00:00 2001
From: Ciro Scognamiglio <ciro.scognamiglio@cslash.net>
Date: Tue, 17 Feb 2015 11:01:09 +0100
Subject: [PATCH] fixed icons display

---
 plugins/testbeds/static/js/testbeds.js   | 4 ++++
 plugins/testbeds/templates/testbeds.html | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/plugins/testbeds/static/js/testbeds.js b/plugins/testbeds/static/js/testbeds.js
index 1050f548..ba40d00a 100644
--- a/plugins/testbeds/static/js/testbeds.js
+++ b/plugins/testbeds/static/js/testbeds.js
@@ -51,6 +51,10 @@
                 $scope._testbed_active[facility] = new Object();
             $scope._testbed_active[facility][testbed] = value;
         };
+        
+        $scope.tolower = function(string) {
+            return string.toLowerCase(string);  
+        };
     
         /* Click event */
 
diff --git a/plugins/testbeds/templates/testbeds.html b/plugins/testbeds/templates/testbeds.html
index 6ee26f2a..755bc355 100644
--- a/plugins/testbeds/templates/testbeds.html
+++ b/plugins/testbeds/templates/testbeds.html
@@ -10,7 +10,7 @@
                id="facility-filter_{[{ facility_name }]}"
                ng-click="select_facility(facility_name)"
                data-platform="{[{ facility_name }]}">
-               <img class="sl-image" src="/static/icons/{[{ facility_name }]}.png" /> {[{ facility_name }]}
+               <img class="sl-image" src="/static/icons/{[{ tolower(facility_name) }]}.png" /> {[{ facility_name }]}
             </a>
             <div class="sl-testbeds" ng-repeat="testbed_name in testbed_names[facility_name]">
                 <a href="#" 
-- 
2.47.0