fix: hide all instances list from non root user
This commit is contained in:
parent
fb0b5053d7
commit
77ada7394e
@ -264,6 +264,21 @@ function Immersion() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Colonne droite - iframe du sujet */}
|
||||||
|
<div className="lg:w-2/3 px-4">
|
||||||
|
<div className="bg-base-200 shadow-lg rounded-lg p-6 mt-4 h-full">
|
||||||
|
<h2 className="text-2xl font-bold text-blue-600 mb-4">
|
||||||
|
Subject
|
||||||
|
</h2>
|
||||||
|
<iframe
|
||||||
|
src="https://tp.la-banquise.fr/Sujet_1_Banquise.pdf"
|
||||||
|
className="w-full h-[800px] rounded-lg border-2 border-base-300"
|
||||||
|
title="Subject Document"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<a
|
<a
|
||||||
href={ji.pdfLink}
|
href={ji.pdfLink}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -280,23 +295,9 @@ function Immersion() {
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Colonne droite - iframe du sujet */}
|
|
||||||
<div className="lg:w-2/3 px-4">
|
|
||||||
<div className="bg-base-200 shadow-lg rounded-lg p-6 mt-4 h-full">
|
|
||||||
<h2 className="text-2xl font-bold text-blue-600 mb-4">
|
|
||||||
Subject
|
|
||||||
</h2>
|
|
||||||
<iframe
|
|
||||||
src="https://tp.la-banquise.fr/Sujet_1_Banquise.pdf"
|
|
||||||
className="w-full h-[800px] rounded-lg border-2 border-base-300"
|
|
||||||
title="Subject Document"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Section inférieure : Tableau des instances sur toute la largeur */}
|
{/* Section inférieure : Tableau des instances sur toute la largeur */}
|
||||||
|
{username === "root" && (
|
||||||
<div className="px-4 mt-8">
|
<div className="px-4 mt-8">
|
||||||
<div className="bg-base-200 shadow-lg rounded-lg p-6">
|
<div className="bg-base-200 shadow-lg rounded-lg p-6">
|
||||||
<div className="flex justify-between items-center mb-4">
|
<div className="flex justify-between items-center mb-4">
|
||||||
@ -395,6 +396,7 @@ function Immersion() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user