dingle dongle i am tired

This commit is contained in:
Roscoe 2026-01-30 02:21:42 +00:00
commit 6b83c0b8c4
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
5 changed files with 158 additions and 15 deletions

View file

@ -1,7 +1,6 @@
<% cache @category do %>
<h1><%= @category.name %></h1>
<h1>Clips in the <pre><%= @category.name %></pre> category</h1>
<% end %>
<table id="clips" border="1">
<tr>
<th>Preview</th>

View file

@ -17,26 +17,29 @@
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/icon.png">
<style>
html {
color-scheme: dark;
}
</style>
<%# Includes all stylesheet files in app/assets/stylesheets %>
<%= stylesheet_link_tag :app %>
</head>
<body>
<h1>Misadventure</h1>
<nav>
<%= link_to "Home", root_path %>
<header>
<div class="header">
<div><%= image_tag("logo.png", width: 64) %></div>
<div>
<h1><em>Misadventure!</em></h1>
</div>
</div>
<nav>
<strong>Links:</strong>
<%= button_to "Home", root_path, method: :get %>
<%= button_to "Log in", new_session_path, method: :get unless authenticated? %>
<%= button_to "Log out", session_path, method: :delete if authenticated? %>
<%= link_to "Login", new_session_path unless authenticated? %>
<%= link_to "Clips", clips_path %>
<%= link_to "Categories", categories_path %>
<%= link_to "Tags", tags_path %>
<%= button_to "Clips", clips_path, method: :get %>
<%= button_to "Categories", categories_path, method: :get %>
<%= button_to "Tags", tags_path, method: :get %>
</nav>
</header>
<main>
<%= yield %>
</main>