dingle dongle i am tired
This commit is contained in:
parent
73edf81633
commit
6b83c0b8c4
5 changed files with 158 additions and 15 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue