Aggiedit/lib/aggiedit_web/templates/layout/root.html.heex

50 lines
2.2 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<%= csrf_meta_tag() %>
2022-04-14 02:18:01 -04:00
<%= live_title_tag assigns[:page_title] || "Aggiedit" %>
<link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/assets/app.css")}/>
2022-04-14 15:56:10 -04:00
<script phx-track-static type="text/javascript" src={Routes.static_path(@conn, "/assets/app.js")}></script>
2022-04-22 17:44:24 -04:00
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
2022-04-14 02:18:01 -04:00
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.0/font/bootstrap-icons.css">
</head>
2022-04-14 02:18:01 -04:00
<body class="bg-secondary min-vh-100">
<header>
2022-04-14 02:18:01 -04:00
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<div class="container">
<a href="/" class="navbar-brand">
AggiEdit
</a>
<button class="navbar-toggler ms-auto" type="button" data-bs-toggle="collapse" data-bs-target="#toggle">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="toggle">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="/">Home</a>
</li>
<%= if @current_user do %>
<li class="nav-item active">
<%= link "My SubAggie", to: "/room/#{@current_user.room_id}", class: "nav-link" %>
</li>
<% end %>
</ul>
<ul class="navbar-nav ms-auto">
<%= render "_user_menu.html", assigns %>
</ul>
</div>
</div>
</nav>
</header>
2022-04-14 02:18:01 -04:00
<div class="container mt-2 bg-light p-2 shadow rounded">
<%= @inner_content %>
</div>
</body>
</html>