ciclos

commit 72c5ea3473b8389735be069da679199c4c683421

Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>

Add a shine new menu

 src/templates/layout.html | 25 ++++++++++++++++++++++++-


diff --git a/src/templates/layout.html b/src/templates/layout.html
index 843ea3ffb7798dce8c1c902cee21199289a01de4..28513c53fb7a9a00d428b3c3cc3e5332e71a334a 100644
--- a/src/templates/layout.html
+++ b/src/templates/layout.html
@@ -3,13 +3,36 @@ 
   <head>
     <meta charset="utf-8" />
     {% block title %}
-    <title>{{ title }}</title>
+    <title>{{ title or "Feira Virtual Bem da Terra" }}</title>
     {% endblock %}
   
     <link href="/static/stylesheet.css" rel="stylesheet" />
   </head>
 
   <body>
+    <nav class="navbar">
+      <a href="{{ url_for('basic.index') }}">Bem da Terra</a>
+      <ul>
+        <li> <a class="mr-5" href="{{ url_for('basic.about') }}">Sobre</a> </li>
+        <li> <a class="mr-5" href="#">Contato</a> </li>
+      
+        {% if current_user.is_authenticated %}
+          <li> <a class="mr-5" href="{{ url_for('orders.index') }}">Seus Pedidos</a> </li>
+          <li> <a class="mr-5" href="{{ url_for('cycles.index') }}">Ciclos</a></li>
+        {% endif %}
+      </ul>
+
+      <div class="login">
+        {% if current_user.is_authenticated %}
+          <span>
+            Logado como {{ current_user.username }} — <a href="{{ url_for('auth.logout') }}">Sair</a>
+          </span>
+        {% else %}
+          <a href="{{ url_for('auth.login') }}">Entrar</a> — <a href="{{ url_for('auth.sign_up') }}">Cadastrar</a>
+        {% endif %}
+      </div>
+    </nav>
+
     <div class='container-content'>
       {% block body %}