obdev/app/views/layouts/application.html.erb

45 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-01-14 21:20:14 -06:00
<!doctype html>
<html lang="en">
2024-01-11 19:40:58 -06:00
<head>
2024-01-14 21:20:14 -06:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2024-01-11 19:40:58 -06:00
<title>Obdev</title>
2024-01-14 21:20:14 -06:00
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'rails-ujs', 'data-turbolinks-track': 'reload' %>
<%= csrf_meta_tags %>
</head>
2024-01-11 19:40:58 -06:00
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<%= link_to 'Home', root_path, class: 'navbar-brand' %>
<div class="collapse navbar-collapse">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<% if user_signed_in? %>
<li class="nav-item">
<%= link_to 'Sign Out', destroy_user_session_path, method: :delete, class: 'nav-link' %>
</li>
<% else %>
<li class="nav-item">
<%= link_to 'Sign In', new_user_session_path, class: 'nav-link' %>
</li>
<% end %>
</ul>
</div>
</div>
</nav>
2024-01-14 21:20:14 -06:00
<%= yield %>
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
2024-01-14 21:20:14 -06:00
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</body>
2024-01-11 19:40:58 -06:00
</html>