<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{% block title %}reValuate{% endblock %}</title>
	{% load static %}
  {% load qr_code %}
    {% block optionalParams %} {% endblock %}

	          <!-- Required meta tags -->
          <meta charset="utf-8">
          <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
          <title> reValuate: Putting the value back in recycling </title>
          <!-- Bootstrap CSS and own CSS and AJAX -->

          <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>

          <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
          <link rel="stylesheet" href="{% static 'home/css/style.css' %}">
          <link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>


      </head>
      <body>
        {% block aboveNav %} {% endblock %}
        <div>
          <nav class="navbar navbar-expand-lg fixed-top bg-success"> 
          <a style="color: white; font-size: 200%;" class="navbar-brand mb-0 h1" href="/"> reValuate | </a>
    
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#target" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
	<i class="fas fa-bars" style="color:#000; font-size:28px;"></i>
    </button>
              <div class="collapse navbar-collapse" id="target">
                <ul class="navbar-nav mr-auto">
                  <li class="nav-item d-none d-md-block" >
      

                       </li>
					   <li class="nav-item d-none d-md-block" >
      

						
											   </li>
     
                  </ul>
                  <ul class="navbar-nav ml-auto" style="right: 0; left: auto;">
                  <li class="nav-item dropdown " >
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                      {% if user.is_authenticated %}
						{{ user.username }}
						{% else %}
						Акaунт
						{% endif %}
					</a>
                    <div class="dropdown-menu animate slideIn dropdown-menu-right" style="text-align: center;" aria-labelledby="navbarDropdown"  >
                      {% if user.is_authenticated %}
                      <a class="dropdown-item "href="/view_media/">Прогрес</a>
                                            <div class="dropdown-divider"></div>

                       <a class="dropdown-item "href="{%url 'logout'%}">Излизане </a>
					   <div class="dropdown-divider"></div>

                      {% else %}
                      <a class="dropdown-item" href="/users/signup"> Регистрация </a>
                      <div class="dropdown-divider"></div>
                      <a class="dropdown-item" href="/users/login"> Влизане </a>
                        <div class="dropdown-divider"></div>
                      {% endif %}
                    </div>
                  </li>
                </div>
                </ul>
            </nav>
          </div>
          
            {% block content %}
            {% endblock %}

          <!-- Jquery, popper, bootstrap scripts -->
          <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
          <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
          <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>


</body>
</html>
