<!DOCTYPE html>
<html lang="en">
<head>
  {% block title %}<title>Gabriel's DRM</title>{% endblock %}
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
  {% load static %}
  <link rel="stylesheet" href="{% static 'css/styles.css' %}">
  <link rel="shortcut icon" type="image/png" href="{% static 'favicon.png' %}"/>
<style>
{% load static %}
body {
  background-image: url('{% static "images/wall.jpg" %}');
  color: black;
}
.col-sm-5{
  margin-top: 20px;
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
}
</style>
</head>
<body>
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-2">
      {% block sidebar %}
        <ul class="sidebar-nav">
          <li><a href="{% url 'index' %}">Home</a></li>
          {% if user.is_authenticated %}
            <li> Username: </li>
            <li id="username">{{ user.get_username }}</li>
            <li> Folder ID: {{ user.folderinfo }}</li>
            <li><a href="{% url 'create-license' user.folderinfo.id %}">Create License</a></li>
            <li><a href="{% url 'given-licenses' %}">Given Licenses</a></li>
            <li><a href="{% url 'my-licenses' %}">My Licenses</a></li>
            <li><a href="{% url 'logout'%}?next={{request.path}}">Logout</a></li>
          {% else %}
            <li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
          {% endif %}
        </ul>
     {% endblock %}
    </div>
    <div class="col-sm-5">{% block content %}{% endblock %}</div>
      {% if "license/show" in request.path %}
    <div class="col-sm-5" style="visibility: hidden" id="license_content">
         <div class="row">
      <div class="col-sm-3">
      <div id="part_buttons"></div>
         </div>
      <div class="col-sm-6">
        <div id="content_parts"></div>
        </div>
           </div>
    </div>
      {% endif %}
  </div>
</div>
<script src="{% static 'frontend/main.js' %}"></script>
</body>
</html>