2022-11-20 15:06:27 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>FamilyBudget</title>
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<%= csrf_meta_tags %>
|
|
|
|
<%= csp_meta_tag %>
|
2022-11-20 15:07:09 -05:00
|
|
|
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
|
2022-11-20 15:06:27 -05:00
|
|
|
|
|
|
|
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
|
|
|
<%= javascript_importmap_tags %>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2023-02-24 18:06:29 -05:00
|
|
|
<nav class="w-100 p-6 bg-gray-900 flex items-center justify-between flex-wrap">
|
|
|
|
<ul class="flex">
|
2024-08-16 19:59:29 -04:00
|
|
|
<% if Current.user.registered? %>
|
2024-09-08 21:07:51 -04:00
|
|
|
<li class="mr-6"><%= link_to "Dashboard", root_path, class: "text-white" %></li>
|
|
|
|
<li class="mr-6"><%= link_to "Expenses", expenses_path, class: "text-white" %></li>
|
|
|
|
<li class="mr-6"><%= link_to "Credit Card Bills", credit_card_bills_path, class: "text-white" %></li>
|
|
|
|
<li class="mr-6"><%= link_to "Incomes", incomes_path, class: "text-white" %></li>
|
|
|
|
<li class="mr-6"><%= link_to "Members", members_path, class: "text-white" %></li>
|
2024-08-16 19:59:29 -04:00
|
|
|
<li class="mr-6"><%= link_to "Log out", session_path, data: {turbo_method: :delete}, class: "text-white" %></li>
|
|
|
|
<% else %>
|
2024-09-08 21:07:51 -04:00
|
|
|
<li class="mr-6"><%= link_to "Sign up", new_user_path, class: "text-white" %></li>
|
2024-08-16 19:59:29 -04:00
|
|
|
<li class="mr-6"><%= link_to "Log in", new_session_path, class: "text-white" %></li>
|
|
|
|
<% end %>
|
2023-02-24 18:06:29 -05:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
2024-08-01 21:41:42 -04:00
|
|
|
<% if flash.any? %>
|
|
|
|
<% flash.each do |type, msg| %>
|
|
|
|
<div class="py-2 px-4 font-bold msg-<%= type %>">
|
|
|
|
<%= msg %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
2022-11-20 15:07:09 -05:00
|
|
|
<main class="container mx-auto mt-28 px-5 flex">
|
|
|
|
<%= yield %>
|
|
|
|
</main>
|
2022-11-20 15:06:27 -05:00
|
|
|
</body>
|
|
|
|
</html>
|