{% load static %}
<!doctype html>
<html class="no-js" lang="">
    <head>
        <title>{% block page_title %}Welcome{% endblock %} | Emus, an EmulationStation Web Interface</title>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
        <script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>

        <style type="text/css">
        dl {
            display: flex;
            flex-flow: column wrap;
            max-height: 6em;
            border: 1px solid #777;
        }
        dt {
            padding: 2px 4px;
            background: #777;
            color: #fff;
        }
        dd {
            margin: 0;
            padding: 4px;
            min-height: 3em;
            border-right: 1px solid #777;
        }
         .card img { width:18em; padding: 1em; }
         .card-block { padding: 1em 0 1em 0; }
         .system-badge { padding: 1em; font-size: normal; }
         .gba { background: #777777;}
         .virtualboy { background: #99aa11; }
         .ps2 { background:  #111caa; }
         .pcengine { background: #55b4cc; }
         .gc { background:  #aa11ff; }
         .snes { background: #bb1111; }
         .scummvm { background: #cccc11; color:black; }
        </style>
        {% block head_extra %}{% endblock %}

        <link rel="apple-touch-icon" href="/apple-touch-icon.png">
        <!-- Place favicon.ico in the root directory -->

    </head>
    <body>
        <!--[if lt IE 8]>
            <p class="browserupgrade">
            You are using an <strong>outdated</strong> browser. Please
            <a href="http://browsehappy.com/">upgrade your browser</a> to improve
            your experience.
            </p>
        <![endif]-->
        <div class="container">
            <nav class="navbar navbar-expand-lg navbar-light bg-light">
            <a class="navbar-brand" href="#">Emus</a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="{% url 'games:game_list' %}">Library<span class="sr-only">(current)</span></a>
                </li>
                <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">Systems</a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        {% for system in game_systems %}
                        <a class="dropdown-item" href="{{system.get_absolute_url}}">{{system.name}}</a>
                        {% endfor %}
                    </div>
                </li>
                </ul>
                <form class="form-inline my-2 my-lg-0" method="get" action="{% url 'search:search' %}">
                <input class="form-control mr-sm-2" name="q" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
                </form>
            </div>
            </nav>

            <h2>{% block title %}{% endblock %}</h2>

            <div>
                {% block content %}
                {% endblock %}
            </div>
        </div>
    </body>
</html>
