<% const body = ` ${typeof req !== 'undefined' && req.query && req.query.updated ? `
World settings updated successfully!
` : ''}

World Settings

${typeof csrfToken !== 'undefined' && csrfToken ? `` : ''}
Manage Mods

World Information

Internal Name: ${world.name}
Game: ${world.gameid}
World Size: ${(world.worldSize / 1024 / 1024).toFixed(2)} MB
Created: ${new Date(world.created).toLocaleString()}
Last Modified: ${new Date(world.lastModified).toLocaleString()}
${world.enabledMods && world.enabledMods.length > 0 ? `

Enabled Mods (${world.enabledMods.length})

${world.enabledMods.map(mod => `
${mod.title} ${mod.author ? `by ${mod.author}` : ''}
${mod.description ? `
${mod.description}
` : ''}
${mod.location === 'global-enabled' ? ` Global (Enabled) ` : mod.location === 'world-installed' ? ` World Copy ` : mod.location === 'global-missing' ? ` Missing ` : ` ${mod.location} `}
`).join('')}
` : ''}
`; %> <%- include('../layout', { body: body, currentPage: 'worlds', title: title }) %>