diff --git a/prepare_assets.sh b/prepare_assets.sh index 31dd1bb..66a66b3 100755 --- a/prepare_assets.sh +++ b/prepare_assets.sh @@ -4,7 +4,9 @@ set -e DIR=$(dirname "$0") # install node modules -yarn install --pure-lockfile --production +YARN=yarn +[ -x /usr/bin/lsb_release ] && [ -n "`lsb_release -i | grep Debian`" ] && YARN=yarnpkg +$YARN install --pure-lockfile --production # Copy admin-lte dist mkdir -p "${DIR}/assets/dist/js" "${DIR}/assets/dist/css" && \ diff --git a/templates/status.html b/templates/status.html index f3311a5..d373c54 100644 --- a/templates/status.html +++ b/templates/status.html @@ -14,6 +14,20 @@ Connected Peers {{end}} {{define "page_content"}} +
{{ if .error }} @@ -41,8 +55,8 @@ Connected Peers {{ $peer.Name }} {{ $peer.Email }} {{ $peer.PublicKey }} - {{ $peer.ReceivedBytes }} - {{ $peer.TransmitBytes }} + + {{ $peer.Connected }} {{ $peer.LastHandshakeTime }}