47 lines
1.8 KiB
Elixir
47 lines
1.8 KiB
Elixir
<!DOCTYPE html>
|
||
<html lang="fr">
|
||
<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"/>
|
||
<title>Confi-ENT | Rendus de devois</title>
|
||
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
|
||
<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<section class="container">
|
||
<%= if signed_in?(@conn) do %>
|
||
<%= link "#{String.upcase(get_username(@conn))} (Deconnexion)", to: Routes.session_path(@conn, :delete), method: :delete %>
|
||
<% else %>
|
||
<%= link "Accès Enseignant", to: Routes.session_path(@conn, :new) %>
|
||
<% end %>
|
||
<a href="/">
|
||
<img src="/images/logo.png" alt="">
|
||
</a>
|
||
</section>
|
||
<%= if signed_in?(@conn) do %>
|
||
<div class="container">
|
||
<div class="navbar">
|
||
<ul>
|
||
<li><%= link "Classes", to: Routes.class_path(@conn, :index) %></li>
|
||
<li><%= link "Elèves", to: Routes.student_path(@conn, :index) %></li>
|
||
<li><%= link "Devoirs", to: Routes.assignment_path(@conn, :index) %></li>
|
||
<li><%= link "Rendus", to: Routes.deposit_path(@conn, :index) %></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<% end %>
|
||
</header>
|
||
<main role="main" class="container main">
|
||
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
|
||
<p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
|
||
<%= @inner_content %>
|
||
</main>
|
||
|
||
<footer>
|
||
<a href="https://www.phoenixframework.org/">🔥🐦</a><a href="https://git.athelas-conseils.fr/papey/confient">👨💻</a>
|
||
</footer>
|
||
</body>
|
||
</html>
|