Instance-specific panel generation with pug
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
instance-panel/instance.pug

57 lines
2.2 KiB

div(style='margin-left:12px; margin-right:12px; margin-top: 10px; margin-bottom: 10px')
mixin Status(serv)
unless typeof serv === 'string'
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}
else
| Users
| ] #{serv.map.toLowerCase()}
else
img.icon(title=serv src='https://shigusegubu.club/emoji/sgsgb/Q1_NET.png')
| Offline/Error
style.
.icon {
height: 24px;
margin: 0 2px;
vertical-align: middle;
}
.small {
font-family: monospace;
font-size: 9px;
}
.link {
display: block
}
.game {
margin-top: 1em
}
h3
| Welcome to
a(href='https://pleroma.social' target='_blank') Pleroma!
h3 Shigusegubu's other services
.game
a.link(href='mumble://shigusegubu.club/Fediverse?title=Root&version=1.2.0') Mumble
img.icon(src='/instance/mumble.svg')
+Status(gameServers.mumble)
.small shigusegubu.club
//- .game
//- a.link(href='steam://connect/163.172.162.221:27015') Team Fortress 2 [+Custom maps]
//- img.icon(src='https://steamcdn-a.opskins.media/steamcommunity/public/images/apps/440/e3f595a92552da3d664ad00277fad2107345f743.jpg')
//- +Status(gameServers.tf)
//- .small 163.172.162.221:27015
//- .game
//- a.link(href='steam://connect/163.172.162.221:27016') Killing Floor 2 [+Stalker/Metro]
//- img.icon(src='https://steamcdn-a.opskins.media/steamcommunity/public/images/apps/232090/15837cefb378766e9916548f8591b6eb490b9e52.jpg')
//- +Status(gameServers.kf)
//- .small 163.172.162.221:27016
//- .game
//- .link() Factorio [Railworld/Experimental]
//- img.icon(src='https://steamcdn-a.opskins.media/steamcommunity/public/images/apps/427520/267f5a89f36ab287e600a4e7d4e73d3d11f0fd7d.jpg')
//- img.icon(title='Not setup yet' src='https://shigusegubu.club/emoji/sgsgb/Q1_NET.png')
//- | Offline/Error (Not setup yet...)
//- .small 163.172.162.221
//- p Refresh page to update. Map/player info is fetched every 30 minutes.
//- p Sometimes status might show "Offline" but server is actually still working, no idea why that happens.