PostText/templates/layouts/default.html.ep

62 lines
2.1 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<title>Post::Text - <%= title %></title>
2023-05-13 19:55:59 -04:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<%= asset 'app.css' %>
</head>
<body>
2023-05-20 13:22:29 -04:00
<header class="site-header">
<h1 class="site-title">Post::Text</h1>
<nav class="site-nav">
2023-05-20 22:53:32 -04: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 00:48:24 -04:00
<% if (is_mod) { =%>
2023-05-20 22:53:32 -04:00
<%= link_to Logout => mod_logout => (class => 'click') %>
2023-05-14 00:48:24 -04:00
<% } else { =%>
2023-05-20 22:53:32 -04:00
<%= link_to Login => mod_login => (class => 'click') %>
2023-05-14 00:48:24 -04:00
<% } =%>
2023-04-24 23:00:09 -04:00
</span>
</nav>
2023-04-24 14:25:32 -04:00
<% if (is_mod) { =%>
<nav class="site-nav">
2023-04-15 00:57:45 -04:00
<span>Moderate:</span>
2023-05-20 23:43:32 -04:00
<%= link_to Flagged => flagged_list => (class => 'click') %>
<%= link_to Hidden => hidden_list => (class => 'click') %>
<%= link_to Reset => mod_reset => (class => 'click') %>
</nav>
2023-04-24 14:25:32 -04:00
<% } =%>
<% if (is_admin) { =%>
<nav class="site-nav">
2023-04-15 00:57:45 -04:00
<span>Admin:</span>
2023-05-20 23:43:32 -04:00
<%= link_to Create => create_mod => (class => 'click') %>
<%= link_to Reset => admin_reset => (class => 'click') %>
<%= link_to Lock => lock_mod => (class => 'click') %>
<%= link_to Unlock => unlock_mod => (class => 'click') %>
<%= link_to Promote => promote_mod => (class => 'click') %>
<%= link_to Demote => demote_admin => (class => 'click') %>
</nav>
2023-04-24 14:25:32 -04:00
<% } =%>
</header>
2022-11-19 23:55:03 -05:00
<% if (flash 'error') { =%>
<p class="stash-with-error" id="error"><%= flash 'error' %></p>
2022-11-27 23:56:35 -05:00
<% } elsif (stash 'error') { =%>
<p class="stash-with-error" id="error"><%= stash 'error' %></p>
2022-11-19 23:55:03 -05:00
<% } =%>
<% if (flash 'info') { =%>
<p class="stash-with-info" id="info"><%= flash 'info' %></p>
<% } elsif (stash 'info') { =%>
<p class="stash-with-info" id="info"><%= stash 'info' %></p>
2023-04-15 00:57:45 -04:00
<% } =%>
2022-07-30 02:33:45 -04:00
<%= content =%>
<footer class="site-footer">
<p>In UTF-8 we trust. 🫡</p>
2022-08-14 03:02:37 -04:00
</footer>
</body>
</html>