xrforge-v2/src/page/dir.html

40 lines
923 B
HTML
Raw Normal View History

2026-07-23 10:01:34 +02:00
${header}
2026-07-30 20:53:12 +02:00
{if parent ~= nil and parent.parent == nil then
print([[
<div style="height:120px;" class="jumbotron">
<h1>${opts.title}</h1>
${opts.subtitle}
</div>
<hr style="margin-top:0">
]])
end}
2026-07-30 20:53:12 +02:00
{if parent ~= nil and parent.parent ~= nil then
print([[
<h2>${parent.name}</h2>
]])
end}
2026-07-23 10:01:34 +02:00
<div class="grid">
2026-07-31 14:41:34 +02:00
{if items then
for i=1,#items do
local item = items[i]
local icon = 'folder'
if item.view3D or item.portal3D == false then icon = 'play' end
print([[
<div class="tile">
<a href="]] .. item.url .. [[">
<div class="img" style="background-image: url(]] .. item.thumbnail .. [[);"></div>
<div class="text">
<img src="img/]] .. icon .. [[.svg" class="icon ]] .. icon .. [["/>&nbsp;]] .. item.title .. [[
</div>
</a>
</div>
]])
end
end}
2026-07-23 10:01:34 +02:00
</div>
${footer}