Add Privacy and ToS pages, footer menu
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<%= javascript_importmap_tags %>
|
||||
</head>
|
||||
<body <%= @context.present? ? "id=#{@context}" : "" %> class="h-full <%= @context == :admin ? "bg-red-500" : "bg-sky-900" %>">
|
||||
<div class="min-h-full">
|
||||
<div class="min-h-full flex flex-col">
|
||||
<nav data-controller="topbar">
|
||||
<div class="max-w-6xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="border-b border-gray-200/10">
|
||||
@@ -96,7 +96,18 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= yield %>
|
||||
<div class="flex-grow">
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
||||
<% if user_signed_in? && current_user.confirmed? %>
|
||||
<nav id="footer" class="max-w-6xl mx-auto pt-4 sm:px-6 lg:px-8">
|
||||
<div class="flex justify-end items-center space-x-4 h-16">
|
||||
<%= link_to "Terms", tos_page_path, class: main_nav_class(@current_section, :tos) %>
|
||||
<%= link_to "Privacy", privacy_page_path, class: main_nav_class(@current_section, :privacy) %>
|
||||
</div>
|
||||
</nav>
|
||||
<% end %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user