PostText/templates/layouts/default.html.ep

79 lines
2.9 KiB
Plaintext
Raw Normal View History

<!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-06-01 00:27:18 +00:00
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="theme-color" content="#5b90a4">
<%= content 'open_graph' =%>
2023-06-04 20:36:13 +00:00
<meta property="og:url" content="<%= url_for->to_abs %>">
<meta property="og:site_name" content="Post::Text">
<%= asset 'app.css' %>
</head>
<body>
2023-05-20 17:22:29 +00:00
<header class="site-header">
2023-06-07 17:11:17 +00:00
<h1 class="site-title">Post::Text</h1>
<!--
2023-06-07 05:24:34 +00:00
<picture class="site-logo">
<source srcset="/images/logo_xl.png" media="(min-width: 1900px)">
<source srcset="/images/logo_l.png" media="(min-width: 1200px)">
<source srcset="/images/logo_m.png" media="(min-width: 700px)">
<img src="/images/logo_s.png"
alt="Post::Text logo; a small nerdy anime girl giving a V sign">
</picture>
2023-06-07 17:11:17 +00:00
-->
<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
<% } =%>
2023-04-25 03:00:09 +00:00
</span>
</nav>
2023-04-24 18:25:32 +00:00
<% if (is_mod) { =%>
<nav class="site-nav">
2023-04-15 04:57:45 +00:00
<span>Moderate:</span>
2023-05-21 03:43:32 +00: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 18:25:32 +00:00
<% } =%>
<% if (is_admin) { =%>
<nav class="site-nav">
2023-04-15 04:57:45 +00:00
<span>Admin:</span>
2023-05-21 03:43:32 +00: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 18:25:32 +00:00
<% } =%>
</header>
2022-11-20 04:55:03 +00:00
<% if (flash 'error') { =%>
<p class="stash-with-error" id="error"><%= flash 'error' %></p>
2022-11-28 04:56:35 +00:00
<% } elsif (stash 'error') { =%>
<p class="stash-with-error" id="error"><%= stash 'error' %></p>
2022-11-20 04:55:03 +00: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 04:57:45 +00:00
<% } =%>
2022-07-30 06:33:45 +00:00
<%= content =%>
<footer class="site-footer">
<p>In UTF-8 we trust. 🫡</p>
2022-08-14 07:02:37 +00:00
</footer>
</body>
</html>