62 lines
1.9 KiB
Plaintext
62 lines
1.9 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Post::Text - <%= title %></title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<%= asset 'app.css' %>
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<h1 class="site-title">Post::Text</h1>
|
|
<nav class="site-nav">
|
|
<%= 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') %>
|
|
<% if (is_mod) { =%>
|
|
<%= link_to Logout => mod_logout => (class => 'click') %>
|
|
<% } else { =%>
|
|
<%= link_to Login => mod_login => (class => 'click') %>
|
|
<% } =%>
|
|
</span>
|
|
</nav>
|
|
<% if (is_mod) { =%>
|
|
<nav class="site-nav">
|
|
<span>Moderate:</span>
|
|
<%= link_to Flagged => 'flagged_list' %>
|
|
<%= link_to Hidden => 'hidden_list' %>
|
|
<%= link_to Reset => 'mod_reset' %>
|
|
</nav>
|
|
<% } =%>
|
|
<% if (is_admin) { =%>
|
|
<nav class="site-nav">
|
|
<span>Admin:</span>
|
|
<%= link_to Create => 'create_mod' %>
|
|
<%= link_to Reset => 'admin_reset' %>
|
|
<%= link_to Lock => 'lock_mod' %>
|
|
<%= link_to Unlock => 'unlock_mod' %>
|
|
<%= link_to Promote => 'promote_mod' %>
|
|
<%= link_to Demote => 'demote_admin' %>
|
|
</nav>
|
|
<% } =%>
|
|
</header>
|
|
<% 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>
|
|
<% } elsif (stash 'info') { =%>
|
|
<p class="field-with-info" id="info"><%= stash 'info' %></p>
|
|
<% } =%>
|
|
<%= content =%>
|
|
<footer class="site-footer">
|
|
<p>In UTF-8 we trust. 🫡</p>
|
|
</footer>
|
|
</body>
|
|
</html>
|