2022-07-29 00:44:47 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Post::Text - <%= title %></title>
|
2023-05-13 23:55:59 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2023-05-19 22:49:08 +00:00
|
|
|
<%= asset 'app.css' %>
|
2022-07-29 00:44:47 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2023-05-20 17:22:29 +00:00
|
|
|
<header class="site-header">
|
2023-05-19 22:49:08 +00:00
|
|
|
<h1 class="site-title">Post::Text</h1>
|
|
|
|
<nav class="site-nav">
|
2023-05-21 02:53:32 +00:00
|
|
|
<%= link_to List => threads_list => {list_page => 1},
|
|
|
|
(class => 'click') %>
|
|
|
|
<%= link_to New => post_thread => (class => 'click') %>
|
|
|
|
<%= link_to About => about_page => (class => 'click') %>
|
|
|
|
<%= link_to Rules => rules_page => (class => 'click') %>
|
|
|
|
<%= link_to RSS => threads_feed => {format => 'rss'},
|
|
|
|
(class => 'click') %>
|
2023-05-14 04:48:24 +00:00
|
|
|
<% if (is_mod) { =%>
|
2023-05-21 02:53:32 +00:00
|
|
|
<%= link_to Logout => mod_logout => (class => 'click') %>
|
2023-05-14 04:48:24 +00:00
|
|
|
<% } else { =%>
|
2023-05-21 02:53:32 +00:00
|
|
|
<%= link_to Login => mod_login => (class => 'click') %>
|
2023-05-14 04:48:24 +00:00
|
|
|
<% } =%>
|
2023-04-25 03:00:09 +00:00
|
|
|
</span>
|
2023-05-10 00:07:28 +00:00
|
|
|
</nav>
|
2023-04-24 18:25:32 +00:00
|
|
|
<% if (is_mod) { =%>
|
2023-05-19 22:49:08 +00:00
|
|
|
<nav class="site-nav">
|
2023-04-15 04:57:45 +00:00
|
|
|
<span>Moderate:</span>
|
|
|
|
<%= link_to Flagged => 'flagged_list' %>
|
|
|
|
<%= link_to Hidden => 'hidden_list' %>
|
2023-04-22 01:40:39 +00:00
|
|
|
<%= link_to Reset => 'mod_reset' %>
|
2023-05-10 00:07:28 +00:00
|
|
|
</nav>
|
2023-04-24 18:25:32 +00:00
|
|
|
<% } =%>
|
|
|
|
<% if (is_admin) { =%>
|
2023-05-19 22:49:08 +00:00
|
|
|
<nav class="site-nav">
|
2023-04-15 04:57:45 +00:00
|
|
|
<span>Admin:</span>
|
2023-04-22 03:21:12 +00:00
|
|
|
<%= link_to Create => 'create_mod' %>
|
|
|
|
<%= link_to Reset => 'admin_reset' %>
|
2023-04-22 03:55:49 +00:00
|
|
|
<%= link_to Lock => 'lock_mod' %>
|
|
|
|
<%= link_to Unlock => 'unlock_mod' %>
|
2023-04-22 03:21:12 +00:00
|
|
|
<%= link_to Promote => 'promote_mod' %>
|
|
|
|
<%= link_to Demote => 'demote_admin' %>
|
2023-05-10 00:07:28 +00:00
|
|
|
</nav>
|
2023-04-24 18:25:32 +00:00
|
|
|
<% } =%>
|
2023-05-10 00:07:28 +00:00
|
|
|
</header>
|
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-05-10 00:07:28 +00:00
|
|
|
<% } elsif (stash 'info') { =%>
|
2023-04-15 04:57:45 +00:00
|
|
|
<p class="field-with-info" id="info"><%= stash 'info' %></p>
|
|
|
|
<% } =%>
|
2022-07-30 06:33:45 +00:00
|
|
|
<%= content =%>
|
2023-05-19 22:49:08 +00:00
|
|
|
<footer class="site-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>
|