render top navbar in base

This commit is contained in:
Lera Elvoé 2025-05-21 20:00:15 +03:00
parent 24c210e395
commit f8da57224f
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc
10 changed files with 1 additions and 9 deletions

View File

@ -11,6 +11,7 @@
<link rel="stylesheet" href="<%= "/static/style.css?" .. math.random(1, 100) %>">
</head>
<body>
<% render("views.common.topnav") -%>
<% content_for("inner") %>
</body>
</html>

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<div class="darkbg settings-container">
<h1>New thread</h1>
<form method="post">

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<% local is_locked = ntob(thread.is_locked) %>
<main>
<nav class="darkbg">

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<div class="darkbg settings-container">
<h1>Editing topic <%= topic.name %></h1>
<form method="post">

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<% if infobox then %>
<% render("views.common.infobox", infobox) %>
<% end %>

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<div class="darkbg settings-container">
<h1>Are you sure you want to delete your account, <%= me.username %>?</h1>
<p>This cannot be undone. This will not delete your posts, only anonymize them.</p>

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<div class="darkbg login-container">
<h1>Log In</h1>
<% if infobox then %>

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<div class="darkbg settings-container">
<h1>User settings</h1>
<% if infobox then %>

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<div class="darkbg login-container">
<h1>Sign up</h1>
<% if infobox then %>

View File

@ -1,4 +1,3 @@
<% render("views.common.topnav") -%>
<% if infobox then %>
<% render("views.common.infobox", pop_infobox) %>
<% end %>