Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions App/View/admin/admin-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
<div class="logo">
<h1>StudTraj</h1>
</div>
<nav class="nav-menu">
<a href="<?= BASE_URL ?>/admin/dashboard" class="active">Administration</a>
</nav>
<div class="user-info">
<span>
<?= htmlspecialchars($_SESSION['prenom'] ?? 'Admin') ?>
Expand Down
4 changes: 0 additions & 4 deletions App/View/exercises/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
<span></span><span></span><span></span>
</button>

<nav class="nav-menu">
<a href="<?= BASE_URL ?>/index.php?action=resources_list">Ressources</a>
<a href="<?= BASE_URL ?>/index.php?action=exercises" class="active">Exercices</a>
</nav>

<div class="header-right">
<div class="user-profile">
Expand Down
4 changes: 0 additions & 4 deletions App/View/exercises/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<span></span><span></span><span></span>
</button>

<nav class="nav-menu">
<a href="<?= BASE_URL ?>/index.php?action=resources_list">Ressources</a>
<a href="<?= BASE_URL ?>/index.php?action=exercises" class="active">Exercices</a>
</nav>

<div class="header-right">
<div class="user-profile">
Expand Down
3 changes: 0 additions & 3 deletions App/View/resources/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@
<button class="burger-menu" id="burgerBtn" onclick="toggleBurgerMenu()" aria-label="Menu">
<span></span><span></span><span></span>
</button>
<nav class="nav-menu">
<a href="<?= BASE_URL ?>/resources" class="active">Ressources</a>
</nav>
<div class="header-right">
<div class="user-profile">
<div class="user-avatar"><?= htmlspecialchars($initials) ?></div>
Expand Down
5 changes: 0 additions & 5 deletions App/View/resources/details.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@
<button class="burger-menu" id="burgerBtn" onclick="toggleBurgerMenu()" aria-label="Menu">
<span></span><span></span><span></span>
</button>
<nav class="nav-menu">
<a href="<?= BASE_URL ?>/resources" class="active">Ressources</a>
<a href="<?= BASE_URL ?>/exercises">Exercices</a>
<a href="<?= BASE_URL ?>/ia">IA</a>
</nav>
<div class="header-right">
<button onclick="openImportModal(<?= (int)$resource->getResourceId() ?>)" class="btn-import-trigger">
Comment on lines 146 to 150

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le bouton burger (onclick="toggleBurgerMenu()") est présent, mais ce template ne charge pas le script commun qui définit toggleBurgerMenu (pas de dashboard-main.js) et ne fournit pas non plus une implémentation inline. Un clic déclenchera donc une ReferenceError et empêchera l’ouverture/fermeture du menu (surtout après la suppression du .nav-menu). Charger le JS commun du burger, ou définir une fonction toggleBurgerMenu locale, ou retirer l’onclick si le menu burger n’est pas supporté ici.

Copilot uses AI. Check for mistakes.
<svg style="width:20px;height:15px;" viewBox="0 0 24 24" fill="none"
Expand Down
3 changes: 0 additions & 3 deletions App/View/resources/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
<button class="burger-menu" id="burgerBtn" onclick="toggleBurgerMenu()" aria-label="Menu">
<span></span><span></span><span></span>
</button>
<nav class="nav-menu">
<a href="<?= BASE_URL ?>/resources" class="active">Ressources</a>
</nav>
<div class="header-right">
<div class="user-profile">
<div class="user-avatar"><?= htmlspecialchars($initials) ?></div>
Expand Down
4 changes: 0 additions & 4 deletions App/View/user/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,6 @@
<button class="burger-menu" id="burgerBtn" onclick="toggleBurgerMenu()" aria-label="Menu">
<span></span><span></span><span></span>
</button>
<nav class="nav-menu">
<a href="<?= BASE_URL ?>/resources" class="active">Ressources</a>
<a href="<?= BASE_URL ?>/ia">IA</a>
</nav>
<div class="header-right">
<button onclick="openImportModal(<?= $current_resource_id ?>)" class="btn-import-trigger">
<svg style="width:20px;height:15px;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
Expand Down
4 changes: 0 additions & 4 deletions App/View/user/ia.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@
<button class="burger-menu" id="burgerBtn" onclick="toggleBurgerMenu()" aria-label="Menu">

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le bouton burger appelle toggleBurgerMenu() via onclick, mais ce fichier ne charge aucun script qui définit cette fonction (pas de dashboard-main.js) et ne contient pas non plus de <nav id="burgerNav">. Résultat : clic = ReferenceError et aucune navigation mobile après la suppression du .nav-menu. Ajouter l’implémentation du menu burger (markup #burgerNav + JS commun) ou supprimer le bouton/onclick si ce menu n’est pas utilisé ici.

Suggested change
<button class="burger-menu" id="burgerBtn" onclick="toggleBurgerMenu()" aria-label="Menu">
<button class="burger-menu" id="burgerBtn" aria-label="Menu">

Copilot uses AI. Check for mistakes.
<span></span><span></span><span></span>
</button>
<nav class="nav-menu">
<a href="<?= BASE_URL ?>/resources">Ressources</a>
<a href="<?= BASE_URL ?>/ia" class="active">IA</a>
</nav>
<div class="header-right">
<div class="user-profile">
<div class="user-avatar"><?= htmlspecialchars($initials) ?></div>
Expand Down
2 changes: 0 additions & 2 deletions App/View/user/mentions-legales.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
<span></span>
</button>

<nav class="nav-menu">
</nav>
<div class="user-info">
<span>
<?php echo htmlspecialchars($_SESSION['prenom']); ?>
Expand Down
2 changes: 0 additions & 2 deletions App/View/user/resource_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@
<span></span><span></span><span></span>
</button>

<nav class="nav-menu">
</nav>
<div class="header-right">
<button onclick="openImportModal(<?= $resource->resource_id ?>)" class="btn-import-trigger">
<svg style="width: 20px; height: 15px;" viewBox="0 0 24 24" fill="none"
Expand Down
2 changes: 0 additions & 2 deletions App/View/user/resources_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
<span></span>
</button>

<nav class="nav-menu">
</nav>

<div class="header-right">
<!-- Affichage Profil -->
Expand Down
Loading