small fix + cron script

master
Henry Jameson 5 years ago
parent a3db5c876b
commit 98b02865e7
  1. 3
      generate.sh
  2. 11
      instance.pug

@ -0,0 +1,3 @@
cd ~/instance-panel/
git pull
node index.js > ../pleroma/priv_sid/static/instance/panel.html

@ -1,12 +1,11 @@
div(style='margin-left:12px; margin-right:12px; margin-top: 10px')
mixin Status(serv)
unless typeof serv === 'string'
span
img.icon(src='https://shigusegubu.club/emoji/sgsgb/Q1_RAM.png' title="Online!")
| [#{serv.players.length}
unless serv.query.type.substr(0, 6) === 'mumble'
| /#{serv.maxplayers}
| ] #{serv.map.toLowerCase()}
img.icon(src='https://shigusegubu.club/emoji/sgsgb/Q1_RAM.png' title="Online!")
| [#{serv.players.length}
unless serv.query.type.substr(0, 6) === 'mumble'
| /#{serv.maxplayers}
| ] #{serv.map.toLowerCase()}
else
img.icon(title=serv src='https://shigusegubu.club/emoji/sgsgb/Q1_NET.png')
| Offline/Error

Loading…
Cancel
Save