2022-07-28 20:44:47 -04:00
|
|
|
<!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">
|
2023-05-31 20:27:18 -04: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">
|
2023-06-04 14:34:10 -04:00
|
|
|
<%= content 'open_graph' =%>
|
2023-06-04 16:36:13 -04:00
|
|
|
<meta property="og:url" content="<%= url_for->to_abs %>">
|
|
|
|
<meta property="og:site_name" content="Post::Text">
|
2023-06-07 15:43:45 -04:00
|
|
|
<meta property="og:image"
|
|
|
|
content="<%= url_for('/images/logo.png')->to_abs %>">
|
2023-06-07 13:50:46 -04:00
|
|
|
<meta property="og:image:type" content="image/png">
|
|
|
|
<meta property="og:image:width" content="1200">
|
|
|
|
<meta property="og:image:height" content="1200">
|
|
|
|
<meta property="og:image:alt"
|
|
|
|
content="Post::Text logo; a small nerdy anime girl giving a V sign">
|
2023-06-07 15:43:45 -04:00
|
|
|
<%= content 'twitter_card' =%>
|
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
|
|
<meta name="twitter:creator" content="@swaggboi@eattherich.club">
|
|
|
|
<meta name="twitter:site"
|
|
|
|
content="@posttext@fedi.seriousbusiness.international">
|
|
|
|
<meta name="twitter:image"
|
|
|
|
content="<%= url_for('/images/logo.png')->to_abs %>">
|
|
|
|
<meta name="twitter:image:alt"
|
|
|
|
content="Post::Text logo; a small nerdy anime girl giving a V sign">
|
2023-05-19 18:49:08 -04:00
|
|
|
<%= asset 'app.css' %>
|
2022-07-28 20:44:47 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
2023-11-02 14:30:07 -04:00
|
|
|
<header class="header">
|
|
|
|
<h1 class="header__title">Post::Text</h1>
|
|
|
|
<nav class="header__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') %>
|
2023-09-25 23:33:23 -04:00
|
|
|
<%= link_to Feeds => feeds_page => (class => 'click') %>
|
2023-05-09 20:07:28 -04:00
|
|
|
</nav>
|
2023-04-24 14:25:32 -04:00
|
|
|
<% if (is_mod) { =%>
|
2023-11-02 14:30:07 -04:00
|
|
|
<nav class="header__nav header__nav--moderator">
|
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') %>
|
2023-09-25 23:33:23 -04:00
|
|
|
<%= link_to Logout => mod_logout => (class => 'click') %>
|
2023-05-09 20:07:28 -04:00
|
|
|
</nav>
|
2023-04-24 14:25:32 -04:00
|
|
|
<% } =%>
|
|
|
|
<% if (is_admin) { =%>
|
2023-11-02 14:30:07 -04:00
|
|
|
<nav class="header__nav header__nav--moderator">
|
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') %>
|
2023-05-09 20:07:28 -04:00
|
|
|
</nav>
|
2023-04-24 14:25:32 -04:00
|
|
|
<% } =%>
|
2023-11-02 14:30:07 -04:00
|
|
|
<%= form_for search_page => (class => 'header__search'), begin %>
|
|
|
|
<% if (my $error = validation->error('q')) { =%>
|
|
|
|
<p class="field-with-error">Must be between <%= $error->[2] %>
|
|
|
|
and <%= $error->[3] %> characters.</p>
|
|
|
|
<% } =%>
|
|
|
|
<%= text_field q => (
|
|
|
|
id => 'search',
|
|
|
|
maxlength => 2047,
|
|
|
|
minlength => 1,
|
|
|
|
required => undef
|
|
|
|
) %>
|
|
|
|
<button type="submit" class="search-button">Search</button>
|
2023-11-01 21:58:47 -04:00
|
|
|
<% end %>
|
2023-05-09 20:07:28 -04:00
|
|
|
</header>
|
2022-11-19 23:55:03 -05:00
|
|
|
<% if (flash 'error') { =%>
|
2023-05-28 00:42:07 -04:00
|
|
|
<p class="stash-with-error" id="error"><%= flash 'error' %></p>
|
2022-11-27 23:56:35 -05:00
|
|
|
<% } elsif (stash 'error') { =%>
|
2023-05-28 00:42:07 -04:00
|
|
|
<p class="stash-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') { =%>
|
2023-05-28 00:42:07 -04:00
|
|
|
<p class="stash-with-info" id="info"><%= flash 'info' %></p>
|
2023-05-09 20:07:28 -04:00
|
|
|
<% } elsif (stash 'info') { =%>
|
2023-05-28 00:42:07 -04:00
|
|
|
<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 =%>
|
2023-05-19 18:49:08 -04:00
|
|
|
<footer class="site-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>
|