2018-06-20 19:30:00 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
{% block meta %}
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2018-06-20 23:41:15 +00:00
|
|
|
<meta name="description" content="Mangetico database web interface">
|
|
|
|
<meta name="author" content="Alexey Skobkin">
|
2018-06-20 19:30:00 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<title>{% block title %}Magnetoco Web{% endblock %}</title>
|
|
|
|
|
|
|
|
{% block css %}
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
|
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
|
2018-06-28 19:22:00 +00:00
|
|
|
<!-- Font Awesome -->
|
|
|
|
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
|
2018-06-20 23:37:35 +00:00
|
|
|
<link href="/css/style.css" rel="stylesheet">
|
2018-06-20 19:30:00 +00:00
|
|
|
{% endblock %}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
2018-06-28 19:22:00 +00:00
|
|
|
<a class="navbar-brand" href="{{ path('index') }}"><i class="icon-magnet"></i> Magnetico Search</a>
|
2018-06-20 19:30:00 +00:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
|
2018-06-25 01:02:27 +00:00
|
|
|
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a href="#" class="nav-link dropdown-toggle" role="button" data-toggle="dropdown">
|
2018-06-28 19:22:00 +00:00
|
|
|
<i class="icon-user"></i> {{ app.user.username }}
|
2018-06-25 01:02:27 +00:00
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu">
|
2018-06-28 19:22:00 +00:00
|
|
|
<a href="{{ path('user_account_invites') }}" class="dropdown-item"><i class="icon-group"></i> Invites</a>
|
|
|
|
<a href="{{ path('user_logout') }}" class="dropdown-item"><i class="icon-signout"></i> Logout</a>
|
2018-06-25 01:02:27 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% if is_granted('ROLE_USER') %}
|
2018-06-22 19:45:17 +00:00
|
|
|
<form class="form-inline my-2 my-lg-0" action="{{ path('torrents_search') }}" method="get">
|
2018-06-20 23:37:35 +00:00
|
|
|
<input name="query" class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search"
|
|
|
|
value="{% if searchQuery is defined %}{{ searchQuery }}{% endif %}">
|
2018-06-28 19:22:00 +00:00
|
|
|
<button class="btn btn-outline-success my-2 my-sm-0" type="submit"><i class="icon-search"></i> Search</button>
|
2018-06-20 19:30:00 +00:00
|
|
|
</form>
|
2018-06-25 01:02:27 +00:00
|
|
|
{% endif %}
|
2018-06-20 19:30:00 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
2018-06-20 23:37:35 +00:00
|
|
|
<main id="content" role="main" class="container">
|
|
|
|
{% block content %}{% endblock %}
|
2018-06-20 19:30:00 +00:00
|
|
|
</main><!-- /.container -->
|
|
|
|
|
|
|
|
{% block javascript %}
|
2018-06-28 19:22:00 +00:00
|
|
|
<script src="//code.jquery.com/jquery-3.3.1.slim.min.js"></script>
|
2018-06-20 19:30:00 +00:00
|
|
|
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
|
2018-06-28 19:22:00 +00:00
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
|
|
|
|
<script src="//stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
|
2018-06-20 19:30:00 +00:00
|
|
|
{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|