forked from vern/website
More styling
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
f0ac990b88
commit
25cc603e9f
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
$sum = shell_exec('cd /var/www/website; echo "$(($(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "|" | wc -l)+$(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "^Only in en/" | awk '."'".'{print $NF}'."'".' | while read -r line; do wc -l < en/"$line";printf "+"; done)0))"');
|
$sum = shell_exec('cd /var/www/website; echo "$(($(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "|" | wc -l)+$(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "^Only in en/" | awk '."'".'{print $NF}'."'".' | while read -r line; do wc -l < en/"$line";printf "+"; done)0))"');
|
||||||
$percent = intdiv(($sum * 100), $const);
|
$percent = intdiv(($sum * 100), $const);
|
||||||
return "<li>" . $langs[$tl][0] . " (" . $langs[$tl][1] . ", <code>/$tl/</code>)</li>\n$percent% complete\n<progress max=$const value=$sum>$percent%</progress><br>";
|
return "<li>" . $langs[$tl][0] . " (" . $langs[$tl][1] . ", <code>/$tl/</code>)</li>\n$percent% complete<br>\n<progress max=$const value=$sum>$percent%</progress><br>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!--#include file="nav.php" -->
|
<!--#include file="nav.php" -->
|
||||||
|
|
|
@ -77,7 +77,7 @@ input[type=submit] {
|
||||||
|
|
||||||
progress {
|
progress {
|
||||||
height: 12px;
|
height: 12px;
|
||||||
width: 70%;
|
width: 90%;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border: 1px solid #282c34;
|
border: 1px solid #282c34;
|
||||||
background-color: #bbc2cf;
|
background-color: #bbc2cf;
|
||||||
|
|
Loading…
Reference in New Issue