2022-07-29 00:44:47 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Post::Text - <%= title %></title>
|
2022-08-15 22:35:30 +00:00
|
|
|
<%= asset 'main.css' %>
|
2022-07-29 00:44:47 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Post::Text</h1>
|
2022-08-04 00:29:41 +00:00
|
|
|
<nav>
|
2023-04-15 04:57:45 +00:00
|
|
|
<div>
|
|
|
|
<%= link_to List => 'threads_list' %>
|
|
|
|
<%= link_to New => 'post_thread' %>
|
|
|
|
<% unless (is_mod) { =%>
|
|
|
|
<%= link_to Login => 'mod_login' %>
|
|
|
|
<% } =%>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<% if (is_mod) { =%>
|
|
|
|
<span>Moderate:</span>
|
|
|
|
<%= link_to Flagged => 'flagged_list' %>
|
|
|
|
<%= link_to Hidden => 'hidden_list' %>
|
|
|
|
<%= link_to Logout => 'mod_logout' %>
|
|
|
|
<% } =%>
|
|
|
|
</div>
|
|
|
|
<div>
|
2023-04-21 21:32:16 +00:00
|
|
|
<% if (is_admin) { =%>
|
2023-04-15 04:57:45 +00:00
|
|
|
<span>Admin:</span>
|
|
|
|
<%= link_to Create => 'create_mod' %>
|
|
|
|
<% } =%>
|
|
|
|
</div>
|
2022-12-08 18:41:23 +00:00
|
|
|
</nav>
|
2022-08-04 00:29:41 +00:00
|
|
|
<hr>
|
2022-11-20 04:55:03 +00:00
|
|
|
<% if (flash 'error') { =%>
|
|
|
|
<p class="field-with-error" id="error"><%= flash 'error' %></p>
|
2022-11-28 04:56:35 +00:00
|
|
|
<% } elsif (stash 'error') { =%>
|
|
|
|
<p class="field-with-error" id="error"><%= stash 'error' %></p>
|
2022-11-20 04:55:03 +00:00
|
|
|
<% } =%>
|
2022-10-09 03:14:18 +00:00
|
|
|
<% if (flash 'info') { =%>
|
|
|
|
<p class="field-with-info" id="info"><%= flash 'info' %></p>
|
|
|
|
<% } =%>
|
2023-04-15 04:57:45 +00:00
|
|
|
<% if (stash 'info') { =%>
|
|
|
|
<p class="field-with-info" id="info"><%= stash 'info' %></p>
|
|
|
|
<% } =%>
|
2022-07-30 06:33:45 +00:00
|
|
|
<%= content =%>
|
2022-08-14 07:02:37 +00:00
|
|
|
<footer>
|
2022-10-09 03:14:18 +00:00
|
|
|
<p>In UTF-8 we trust. 🫡</p>
|
2022-08-14 07:02:37 +00:00
|
|
|
</footer>
|
2022-07-29 00:44:47 +00:00
|
|
|
</body>
|
|
|
|
</html>
|