1
0

In Index template removed one tab level to save horizontal space.

This commit is contained in:
Alexander Andreev 2024-12-27 16:35:03 +04:00
parent c63d59f0a4
commit 2c8a9e3e61
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -8,9 +8,9 @@ import "strconv"
templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.DirEntry, r *http.Request) { templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.DirEntry, r *http.Request) {
<!doctype html> <!doctype html>
<html lang={ i18n.GetLocale(ctx).Code().String() }> <html lang={ i18n.GetLocale(ctx).Code().String() }>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
@ -25,9 +25,9 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<link rel="icon" href="/assets/img/favicon.svg" sizes="any" type="image/svg+xml"/> <link rel="icon" href="/assets/img/favicon.svg" sizes="any" type="image/svg+xml"/>
<link rel="stylesheet" href="/assets/css/main.css" /> <link rel="stylesheet" href="/assets/css/main.css" />
<script src="/assets/js/main.js" defer></script> <script src="/assets/js/main.js" defer></script>
</head> </head>
<body> <body>
<header> <header>
<svg width="360" viewBox="0 -36 360 66"> <svg width="360" viewBox="0 -36 360 66">
<text y="7" textLength="360" lengthAdjust="spacingAndGlyphs">Arav's dwelling</text> <text y="7" textLength="360" lengthAdjust="spacingAndGlyphs">Arav's dwelling</text>
<text y="25" textLength="360" lengthAdjust="spacingAndGlyphs">Welcome to my sacred place, wanderer</text> <text y="25" textLength="360" lengthAdjust="spacingAndGlyphs">Welcome to my sacred place, wanderer</text>
@ -36,8 +36,8 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<a href={ templ.SafeURL(utils.MainSite(r.Host)) }>{ i18n.T(ctx, "back-home") }</a> <a href={ templ.SafeURL(utils.MainSite(r.Host)) }>{ i18n.T(ctx, "back-home") }</a>
<h1>{ i18n.T(ctx, "title") }</h1> <h1>{ i18n.T(ctx, "title") }</h1>
</nav> </nav>
</header> </header>
<main> <main>
<section> <section>
<span><a href="/">{ i18n.T(ctx, "curpath-root") }</a>@templ.Raw(currentPath)</span> <span><a href="/">{ i18n.T(ctx, "curpath-root") }</a>@templ.Raw(currentPath)</span>
<p>{ i18n.T(ctx, "stats.files") }: { strconv.FormatInt(stat.Files, 10) } ({ stat.FilesSize }); { i18n.T(ctx, "stats.directories") }: { strconv.FormatInt(stat.Directories, 10) }.</p> <p>{ i18n.T(ctx, "stats.files") }: { strconv.FormatInt(stat.Files, 10) } ({ stat.FilesSize }); { i18n.T(ctx, "stats.directories") }: { strconv.FormatInt(stat.Directories, 10) }.</p>
@ -77,14 +77,14 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<section id="instruction" class="hidden"> <section id="instruction" class="hidden">
<p>{ i18n.T(ctx, "instruction") }</p> <p>{ i18n.T(ctx, "instruction") }</p>
</section> </section>
</main> </main>
<footer> <footer>
<a href="?lang=ru">рус</a> <a href="?lang=ru">рус</a>
<a href="?lang=en">eng</a> <a href="?lang=en">eng</a>
<br/> <br/>
v{ progVer } 2017&mdash;2024 { i18n.T(ctx, "footer.author") } &lt;<a href="mailto:me@arav.su">me@arav.su</a>&gt; <a href={ templ.SafeURL(utils.MainSite(r.Host) + "/privacy") }>{ i18n.T(ctx, "footer.privacy") }</a> v{ progVer } 2017&mdash;2024 { i18n.T(ctx, "footer.author") } &lt;<a href="mailto:me@arav.su">me@arav.su</a>&gt; <a href={ templ.SafeURL(utils.MainSite(r.Host) + "/privacy") }>{ i18n.T(ctx, "footer.privacy") }</a>
</footer> </footer>
<div id="overlay"> <div id="overlay">
<button name="prev">&#10096;</button> <button name="prev">&#10096;</button>
<div></div> <div></div>
<span></span> <span></span>
@ -93,7 +93,7 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<label for="c-autoplay">{ i18n.T(ctx, "autoplay") }</label> <label for="c-autoplay">{ i18n.T(ctx, "autoplay") }</label>
</span> </span>
<button name="next">&#10097;</button> <button name="next">&#10097;</button>
</div> </div>
</body> </body>
</html> </html>
} }