PostText/templates/layouts/default.html.ep

36 lines
863 B
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<title>Post::Text - <%= title %></title>
2022-08-15 18:35:30 -04:00
<%= asset 'main.css' %>
</head>
<body>
<h1>Post::Text</h1>
2022-08-03 20:29:41 -04:00
<nav>
<%= link_to List => 'threads_list' %>
<%= link_to New => 'post_thread' %>
<% unless (is_mod) { =%>
<%= link_to Login => 'mod_login' %>
<% } =%>
<% if (is_mod) { =%>
<%= link_to Flagged => 'flagged_list' %>
2023-01-08 23:10:58 -05:00
<%= link_to Hidden => 'hidden_list' %>
<%= link_to Logout => 'mod_logout' %>
<% } =%>
</nav>
2022-08-03 20:29:41 -04:00
<hr>
2022-11-19 23:55:03 -05:00
<% if (flash 'error') { =%>
<p class="field-with-error" id="error"><%= flash 'error' %></p>
2022-11-27 23:56:35 -05:00
<% } elsif (stash 'error') { =%>
<p class="field-with-error" id="error"><%= stash 'error' %></p>
2022-11-19 23:55:03 -05:00
<% } =%>
<% if (flash 'info') { =%>
<p class="field-with-info" id="info"><%= flash 'info' %></p>
<% } =%>
2022-07-30 02:33:45 -04:00
<%= content =%>
2022-08-14 03:02:37 -04:00
<footer>
<p>In UTF-8 we trust. 🫡</p>
2022-08-14 03:02:37 -04:00
</footer>
</body>
</html>