Commit 06c190f9 authored by Vinicius Ruoso's avatar Vinicius Ruoso

Fixed the way table cells background color is applied.

This update has been aplied to 020-tunnel-sdi, 025-version and 040-raid.

Before, the attribute "bgcolor" was used to say what color a table cell
should have.

We pass this feature to the SDI css file, and changed the attribute
to "class".
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent c72f3d8d
......@@ -19,9 +19,9 @@ function getcolumn()
fi
if test "$STATUS" = "ONLINE" ; then
printf "<td bgcolor=GREEN>ONLINE</td>"
printf "<td class=\"green\">ONLINE</td>"
else
printf "<td bgcolor=RED>OFFLINE</td>"
printf "<td class=\"red\">OFFLINE</td>"
fi
}
......
......@@ -5,7 +5,7 @@ function getcolumn()
VERSION=$(grep "VERSION" $DATA|tail -1|cut -d'+' -f2)
LATEST="2.0r1 Quero-quero"
if test "$VERSION" != "$LATEST"; then
ATTRIBUTE="bgcolor=gray"
ATTRIBUTE="class=\"gray\""
fi
if test -n "$VERSION"; then
printf "<td $ATTRIBUTE>$VERSION</td>"
......
......@@ -14,7 +14,7 @@ function getcolumn()
if ! grep -q '_' <<< "$DIAGNOSE" ; then
DIAGNOSE="DEGRADED"
fi
printf "<td bgcolor=red>$DIAGNOSE</td>"
printf "<td class=\"red\">$DIAGNOSE</td>"
else
printf "<td></td>"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment