2022-07-28 20:44:47 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Post::Text - <%= title %></title>
|
2022-08-15 18:35:30 -04:00
|
|
|
<%= asset 'main.css' %>
|
2022-07-28 20:44:47 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Post::Text</h1>
|
2022-08-03 20:29:41 -04:00
|
|
|
<nav>
|
2023-04-15 00:57:45 -04:00
|
|
|
<div>
|
2023-04-25 22:28:11 -04:00
|
|
|
<%= link_to List => threads_list => {list_page => 1} %>
|
|
|
|
<%= link_to New => 'post_thread' %>
|
|
|
|
<%= link_to About => 'about_page' %>
|
|
|
|
<%= link_to Rules => 'rules_page' %>
|
|
|
|
<%= link_to RSS => threads_feed => {format => 'rss'} %>
|
2023-04-15 00:57:45 -04:00
|
|
|
<% unless (is_mod) { =%>
|
2023-04-24 23:00:09 -04:00
|
|
|
<span class="login">
|
|
|
|
<%= link_to Login => 'mod_login' %>
|
|
|
|
</span>
|
2023-04-15 00:57:45 -04:00
|
|
|
<% } =%>
|
|
|
|
</div>
|
2023-04-24 14:25:32 -04:00
|
|
|
<% if (is_mod) { =%>
|
2023-04-15 00:57:45 -04:00
|
|
|
<div>
|
|
|
|
<span>Moderate:</span>
|
|
|
|
<%= link_to Flagged => 'flagged_list' %>
|
|
|
|
<%= link_to Hidden => 'hidden_list' %>
|
2023-04-21 21:40:39 -04:00
|
|
|
<%= link_to Reset => 'mod_reset' %>
|
2023-04-15 00:57:45 -04:00
|
|
|
<%= link_to Logout => 'mod_logout' %>
|
|
|
|
</div>
|
2023-04-24 14:25:32 -04:00
|
|
|
<% } =%>
|
|
|
|
<% if (is_admin) { =%>
|
2023-04-15 00:57:45 -04:00
|
|
|
<div>
|
|
|
|
<span>Admin:</span>
|
2023-04-21 23:21:12 -04:00
|
|
|
<%= link_to Create => 'create_mod' %>
|
|
|
|
<%= link_to Reset => 'admin_reset' %>
|
2023-04-21 23:55:49 -04:00
|
|
|
<%= link_to Lock => 'lock_mod' %>
|
|
|
|
<%= link_to Unlock => 'unlock_mod' %>
|
2023-04-21 23:21:12 -04:00
|
|
|
<%= link_to Promote => 'promote_mod' %>
|
|
|
|
<%= link_to Demote => 'demote_admin' %>
|
2023-04-15 00:57:45 -04:00
|
|
|
</div>
|
2023-04-24 14:25:32 -04:00
|
|
|
<% } =%>
|
2022-12-08 13:41:23 -05:00
|
|
|
</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
|
|
|
<% } =%>
|
2022-10-08 23:14:18 -04:00
|
|
|
<% if (flash 'info') { =%>
|
|
|
|
<p class="field-with-info" id="info"><%= flash 'info' %></p>
|
|
|
|
<% } =%>
|
2023-04-15 00:57:45 -04:00
|
|
|
<% if (stash 'info') { =%>
|
|
|
|
<p class="field-with-info" id="info"><%= stash 'info' %></p>
|
|
|
|
<% } =%>
|
2022-07-30 02:33:45 -04:00
|
|
|
<%= content =%>
|
2022-08-14 03:02:37 -04:00
|
|
|
<footer>
|
2022-10-08 23:14:18 -04:00
|
|
|
<p>In UTF-8 we trust. 🫡</p>
|
2022-08-14 03:02:37 -04:00
|
|
|
</footer>
|
2022-07-28 20:44:47 -04:00
|
|
|
</body>
|
|
|
|
</html>
|