PostText/templates/layouts/default.html.ep

29 lines
673 B
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<title>Post::Text - <%= title %></title>
<%= asset 'main.css' %>
</head>
<body>
<h1>Post::Text</h1>
<nav>
<%= link_to List => 'threads_list' %>
<%= link_to New => 'post_thread' %>
<%= link_to Moderate => 'mod_list' %>
</nav>
<hr>
<% if (flash 'error') { =%>
<p class="field-with-error" id="error"><%= flash 'error' %></p>
<% } elsif (stash 'error') { =%>
<p class="field-with-error" id="error"><%= stash 'error' %></p>
<% } =%>
<% if (flash 'info') { =%>
<p class="field-with-info" id="info"><%= flash 'info' %></p>
<% } =%>
<%= content =%>
<footer>
<p>In UTF-8 we trust. 🫡</p>
</footer>
</body>
</html>