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 %}
|
|
|
|
|
2019-01-24 14:02:19 +00:00
|
|
|
<title>{% block title %}Magnetico Web{% endblock %}</title>
|
2018-06-20 19:30:00 +00:00
|
|
|
|
|
|
|
{% block css %}
|
|
|
|
<!-- Bootstrap core CSS -->
|
2020-12-15 17:44:13 +00:00
|
|
|
<link href="{{ asset('assets/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
2018-06-28 19:22:00 +00:00
|
|
|
<!-- Font Awesome -->
|
2020-12-15 17:44:13 +00:00
|
|
|
<link href="{{ asset('assets/fontawesome/css/all.css') }}" rel="stylesheet">
|
2018-07-01 00:19:26 +00:00
|
|
|
<!-- SIte style -->
|
2020-12-15 17:44:13 +00:00
|
|
|
<link href="{{ asset('assets/magnetico-web/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-07-01 00:19:26 +00:00
|
|
|
<a class="navbar-brand" href="{{ path('index') }}"><i class="fas fa-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">
|
2020-07-05 02:13:50 +00:00
|
|
|
<li class="nav-item"><a class="nav-link" href="{{ path('user_account') }}"><i class="fas fa-user"></i> {{ app.user.username }}</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
<li class="nav-item"><a class="nav-link" href="{{ logout_path('main') }}"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
|
2018-06-25 01:02:27 +00:00
|
|
|
</ul>
|
|
|
|
{% 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">
|
2018-11-03 22:38:14 +00:00
|
|
|
{% if is_granted('ROLE_USER') %}
|
|
|
|
<div class id="form-search">
|
2020-07-19 22:26:58 +00:00
|
|
|
<form class="" action="{{ path('torrents_search') }}" method="get">
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
<input name="query" class="form-control" type="text" placeholder="Torrent" aria-label="Search"
|
|
|
|
value="{% if searchQuery is defined %}{{ searchQuery }}{% endif %}"
|
|
|
|
{# @var app \Symfony\Bridge\Twig\AppVariable #}
|
|
|
|
{% if 'index' == app.request.get('_route') %}autofocus{% endif %} />
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button class="btn btn-outline-primary my-2 my-sm-0" type="submit"><i class="fas fa-search"></i> Search</button>
|
|
|
|
<button class="btn btn-outline-info" type="button" data-toggle="collapse" data-target="#search-rules" aria-expanded="false" aria-controls="search-rules">
|
|
|
|
<i class="fa fa-question-circle"></i>
|
|
|
|
</button>
|
2018-11-03 22:38:14 +00:00
|
|
|
</div>
|
2020-07-19 22:26:58 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="alert alert-info collapse" role="alert" id="search-rules">
|
|
|
|
{{ include('search_rules_help.html.twig') }}
|
|
|
|
</div>
|
2018-11-03 22:38:14 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-07-01 23:12:49 +00:00
|
|
|
<div id="alerts">
|
|
|
|
{% for type, messages in app.flashes %}
|
|
|
|
{% for message in messages %}
|
|
|
|
<div class="alert alert-{{ type }}" role="alert">
|
|
|
|
{{ message }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
2018-11-03 22:38:14 +00:00
|
|
|
<div>
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</div>
|
2018-06-20 19:30:00 +00:00
|
|
|
</main><!-- /.container -->
|
|
|
|
|
|
|
|
{% block javascript %}
|
2020-12-15 17:44:13 +00:00
|
|
|
<script src="{{ asset('assets/jquery/js/jquery-3.5.1.slim.min.js') }}"></script>
|
|
|
|
<script src="{{ asset('assets/popper/js/popper.min.js') }}"></script>
|
|
|
|
<script src="{{ asset('assets/bootstrap/js/bootstrap.min.js') }}"></script>
|
2018-06-20 19:30:00 +00:00
|
|
|
{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|