// kate: space-indent on; indent-width 4; replace-tabs on; function renderserverinfos( server ){ var buf = []; if( server.connecturl ){ buf.push( String.format( '{0}: {1}', gettext("Server Address"), server.connecturl ) ); } if( server.url ){ buf.push( String.format( '{0}: {1}', gettext("Website"), server.url ) ); } buf.push( interpolate( gettext("This server is running Murmur version %s."), [server.prettyversion] ) ); buf.push( interpolate( ngettext( "Currently, %s user is registered.", "Currently, %s users are registered.", server.users_regged ), [server.users_regged] ) ); buf.push( interpolate( ngettext( "Currently, %s user is online.", "Currently, %s users are online.", server.users_online ), [server.users_online] ) ); buf.push( interpolate( gettext("This server has %s slots, %s of which are free."), [server.users, (server.users - server.users_online)] ) ); buf.push( interpolate( ngettext( "Currently, there is %s channel.", "Currently, there are %s channels.", server.channel_cnt ), [server.channel_cnt] ) ); if( server.uptime ){ buf.push( interpolate( gettext("This server is running since %s."), [server.upsince] ) ); } buf.push( String.format( '{1}', server.minurl, gettext( "Switch to minimal view" ) ) ); res = ['
', String.format( "

{0}


", server.name ), '

' ); if( server.motd ){ res.push( String.format( '

{0}:

', gettext("Welcome message") ) ); res.push( String.format( '
{0}
', server.motd ) ); } res.push( '
' ); return res.join(''); }