mirror of
https://github.com/ceratic/MediaCollectorLibary.git
synced 2026-05-13 23:56:46 +02:00
132 lines
6.7 KiB
Twig
132 lines
6.7 KiB
Twig
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ title }} - Media Collector</title>
|
|
<!-- Bootstrap CSS CDN -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<!-- Select2 CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet">
|
|
<!-- In the head section of app.twig -->
|
|
{% if app_env == 'production' %}
|
|
{% if manifest['resources/css/app.css'] is defined %}
|
|
<link rel="stylesheet" href="{{ base_url() }}/build/assets/{{ manifest['resources/css/app.css'].file }}">
|
|
{% endif %}
|
|
{% else %}
|
|
<link rel="stylesheet" href="{{ base_url() }}/css/app.css">
|
|
{% endif %}
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/svg+xml" href="{{ base_url() }}/favicon.svg">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
{# DebugBar Assets #}
|
|
{% if debugbarRenderer is defined %}
|
|
{{ debugbarRenderer.renderHead()|raw }}
|
|
{% endif %}
|
|
|
|
<!-- In the head section -->
|
|
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
|
<!-- Before closing </head> tag -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<!-- jQuery (required for Select2) -->
|
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
<!-- Select2 JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
|
{% if app_env == 'production' and manifest['resources/js/app.js'] is defined %}
|
|
<script type="module" src="{{ base_url() }}/build/assets/{{ manifest['resources/js/app.js'].file }}"></script>
|
|
{% else %}
|
|
<script type="module" src="{{ base_url() }}/resources/js/app.js"></script>
|
|
{% endif %}
|
|
</head>
|
|
<body class="bg-light">
|
|
<!-- Navigation -->
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-primary shadow-lg">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand fw-bold" href="{{ path_for('home') }}">Media Collector</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav me-auto">
|
|
<li class="nav-item">
|
|
<a class="nav-link {% if current_route == 'home' %}active{% endif %}" href="{{ path_for('home') }}">Dashboard</a>
|
|
</li>
|
|
{% if is_media_type_visible('games') %}
|
|
<li class="nav-item">
|
|
<a class="nav-link {% if current_route == 'games.index' %}active{% endif %}" href="{{ path_for('games.index') }}">Games</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if is_media_type_visible('movies') %}
|
|
<li class="nav-item">
|
|
<a class="nav-link {% if current_route == 'movies.index' %}active{% endif %}" href="{{ path_for('movies.index') }}">Movies</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if is_media_type_visible('tvshows') %}
|
|
<li class="nav-item">
|
|
<a class="nav-link {% if current_route == 'tvshows.index' %}active{% endif %}" href="{{ path_for('tvshows.index') }}">TV Shows</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if is_media_type_visible('music') %}
|
|
<li class="nav-item">
|
|
<a class="nav-link {% if current_route == 'music.index' %}active{% endif %}" href="{{ path_for('music.index') }}">Music</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if is_media_type_visible('adult') %}
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle {% if current_route == 'adult.index' or current_route == 'actors.index' %}active{% endif %}" href="#" id="adultDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
Adult Videos
|
|
</a>
|
|
<ul class="dropdown-menu" aria-labelledby="adultDropdown">
|
|
<li><a class="dropdown-item {% if current_route == 'adult.index' %}active{% endif %}" href="{{ path_for('adult.index') }}">Videos</a></li>
|
|
<li><a class="dropdown-item {% if current_route == 'actors.index' %}active{% endif %}" href="{{ path_for('actors.index') }}">Performers</a></li>
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
|
|
<div class="d-flex align-items-center">
|
|
<!-- Search Link -->
|
|
<a href="{{ path_for('search.index') }}" class="text-white text-decoration-none me-3">
|
|
<svg class="me-1" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
|
|
</svg>
|
|
Search
|
|
</a>
|
|
|
|
<!-- Admin Link (only for admins) -->
|
|
{% if is_admin() %}
|
|
<a href="/admin" class="text-white text-decoration-none me-3">Admin</a>
|
|
{% endif %}
|
|
|
|
<!-- User Menu -->
|
|
<div class="dropdown">
|
|
<button class="btn btn-link text-white text-decoration-none dropdown-toggle" type="button" id="userDropdown" data-bs-toggle="dropdown" aria-expanded="false">
|
|
<span>{{ current_user().username }}</span>
|
|
</button>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="userDropdown">
|
|
<li><div class="dropdown-header">Signed in as<br><strong>{{ current_user().username }}</strong></div></li>
|
|
<li><hr class="dropdown-divider"></li>
|
|
<li><a class="dropdown-item" href="/logout">Sign out</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- DebugBar -->
|
|
{% if debugbarRenderer is defined %}
|
|
{{ debugbarRenderer.render()|raw }}
|
|
{% endif %}
|
|
|
|
<!-- Page Content -->
|
|
<main class="container-fluid py-4">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|