PoorBooru/views/layouts/main.tt

51 lines
1.7 KiB
Plaintext
Raw Normal View History

2023-02-18 10:49:05 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="[% settings.charset %]">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>[% settings.appname %] - [% title %]</title>
<link rel="stylesheet" href="[% request.uri_base %]/css/style.css">
</head>
<body class="bg-default fg-default flex-c-vertical">
2023-02-18 14:51:17 +01:00
<header>
<nav class="viewport flex-c-horizontal main-nav-link-gap">
<a class="main-nav-link" href="[% uris.root %]">[% settings.appname %]</a>
<a class="main-nav-link" href="[% uris.random %]">random</a>
<a class="main-nav-link" href="[% uris.tags %]">tags</a>
2023-02-18 10:49:05 +01:00
<span class="flex-i-fullsize"><!-- spacer --></span>
<a class="main-nav-link" href="[% uris.login %]">login</a>
2023-02-18 10:49:05 +01:00
</nav>
</header>
<main class="border-bottom border-top border-accent flex-i-fullsize flex-c-vertical">
<div class="viewport flex-i-fullsize flex-c-vertical">
[% UNLESS no_title %]
<h1>[% title %]</h1>
[% END %]
<div class="viewport flex-i-fullsize">[% content %]</div>
[% IF pager %]
<footer>
<nav class="text-center">
[% IF pager.first -%]
<a href="[% pager.first %]">&lt;&lt;</a>
[% END -%]
[% IF pager.prev -%]
<a href="[% pager.prev %]">&lt;</a>
[% END -%]
<span>[% pager.cur %]</span>
[% IF pager.next -%]
<a href="[% pager.next %]">&gt;</a>
[% END -%]
[% IF pager.last -%]
<a href="[% pager.last %]">&gt;&gt;</a>
[% END -%]
</nav>
</footer>
[% END %]
</div>
2023-02-18 10:49:05 +01:00
</main>
<footer class="text-center">
<p class="viewport text-small">Powered by <a href="https://www.openbsd.org">OpenBSD</a> and <a href="https://perldancer.org/">Dancer2</a></p>
2023-02-18 10:49:05 +01:00
</footer>
</body>
</html>