Redirect to the course of the year when promo is different
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f86b87bc72
commit
38744c96bc
@ -44,7 +44,11 @@
|
|||||||
<div class="collapse navbar-collapse" id="loggedMenu">
|
<div class="collapse navbar-collapse" id="loggedMenu">
|
||||||
<ul class="navbar-nav mr-auto">
|
<ul class="navbar-nav mr-auto">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
{#if $user && $user.promo != $user.current_promo}
|
||||||
|
<a class="nav-link" href="adlin/{$user.promo}" target="_self">AdLin</a>
|
||||||
|
{:else}
|
||||||
<a class="nav-link" href="adlin" target="_self">AdLin</a>
|
<a class="nav-link" href="adlin" target="_self">AdLin</a>
|
||||||
|
{/if}
|
||||||
</li>
|
</li>
|
||||||
{#if isSRS}
|
{#if isSRS}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
@ -64,7 +68,13 @@
|
|||||||
{#if $user && $user.is_admin}
|
{#if $user && $user.is_admin}
|
||||||
<li class="nav-item"><a class="nav-link" class:active={data.rroute === 'users'} href="users">Étudiants</a></li>
|
<li class="nav-item"><a class="nav-link" class:active={data.rroute === 'users'} href="users">Étudiants</a></li>
|
||||||
{/if}
|
{/if}
|
||||||
<li class="nav-item"><a class="nav-link" href="virli" target="_self">VIRLI</a></li>
|
<li class="nav-item">
|
||||||
|
{#if $user && $user.promo != $user.current_promo}
|
||||||
|
<a class="nav-link" href="virli/{$user.promo}" target="_self">VIRLI</a>
|
||||||
|
{:else}
|
||||||
|
<a class="nav-link" href="virli" target="_self">VIRLI</a>
|
||||||
|
{/if}
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul class="navbar-nav ms-auto">
|
<ul class="navbar-nav ms-auto">
|
||||||
|
Reference in New Issue
Block a user