From: jose.lausuch Date: Mon, 6 Jun 2016 22:36:43 +0000 (+0200) Subject: Adaptations in the dashboard for the LF server X-Git-Tag: colorado.1.0~31^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=c4441ddfd797a2a1eb68f582d98a2147af0d5440;p=pharos.git Adaptations in the dashboard for the LF server JIRA: RELENG-12 Removed DB information. Change-Id: I7a307a6f4b416837c9e0376764aeee58e2631657 Signed-off-by: jose.lausuch --- diff --git a/tools/infra-dashboard/css/opnfv.css b/tools/infra-dashboard/css/opnfv.css index 8b2711ae..da8aa448 100644 --- a/tools/infra-dashboard/css/opnfv.css +++ b/tools/infra-dashboard/css/opnfv.css @@ -1140,12 +1140,12 @@ body { .collaborative-projects .gray-diagonal { min-height: 30px; width: 100%; - background: url(/opnfv-dashboard/media/diagonal-white.png) transparent repeat scroll top left; + background: url(../media/diagonal-white.png) transparent repeat scroll top left; } .collaborative-projects #collaborative-projects-logo { margin-top: 10px; height: 14px; - background: url(/opnfv-dashboard/media/collaborative-projects-logo.png) no-repeat scroll 10px center transparent; + background: url(../media/collaborative-projects-logo.png) no-repeat scroll 10px center transparent; width: 100%; max-width: 400px; float: left; diff --git a/tools/infra-dashboard/index.php b/tools/infra-dashboard/index.php index 56c765a9..afd18b98 100644 --- a/tools/infra-dashboard/index.php +++ b/tools/infra-dashboard/index.php @@ -98,7 +98,9 @@ $(function() { var dialog, form, - allFields = $( [] ).add( login_email ).add( login_password ); + login_email = $( "#login_email" ), + login_password = $( "#login_password" ), + allFields = $( [] ).add( login_email ).add( login_password ), emailRegex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/; function checkLength( o, n, min, max ) { diff --git a/tools/infra-dashboard/pages/slaves.php b/tools/infra-dashboard/pages/slaves.php index 4eb2add9..25fafd26 100644 --- a/tools/infra-dashboard/pages/slaves.php +++ b/tools/infra-dashboard/pages/slaves.php @@ -8,6 +8,7 @@ xpath('computer'); echo ''; echo ""; @@ -18,8 +19,7 @@ echo ""; echo ""; echo ""; - - foreach ($SLAVES->xpath('computer') as &$value) { + foreach ($array as &$value) { $slave = $value->displayName; $idle = $value->idle; @@ -55,6 +55,4 @@ } echo ''; echo '
'; - - ?> diff --git a/tools/infra-dashboard/utils/database.php b/tools/infra-dashboard/utils/database.php index bacf3637..b72c3d12 100644 --- a/tools/infra-dashboard/utils/database.php +++ b/tools/infra-dashboard/utils/database.php @@ -1,13 +1,15 @@