Files
2020-12-12 18:38:31 +01:00

47 lines
1.8 KiB
Elixir
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>