Deplacement des actions de compte sur l'accueil
This commit is contained in:
@@ -30,14 +30,22 @@
|
||||
</AuthorizeView>
|
||||
|
||||
@code {
|
||||
private string LoginHref => BuildAuthHref("login", CurrentReturnUrl);
|
||||
private string RegisterHref => BuildAuthHref("register", CurrentReturnUrl);
|
||||
[Parameter]
|
||||
public string? ReturnUrl { get; set; }
|
||||
|
||||
private string LoginHref => BuildAuthHref("login", EffectiveReturnUrl);
|
||||
private string RegisterHref => BuildAuthHref("register", EffectiveReturnUrl);
|
||||
private string LogoutHref => BuildAuthHref("logout", "/");
|
||||
|
||||
private string CurrentReturnUrl
|
||||
private string EffectiveReturnUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(ReturnUrl))
|
||||
{
|
||||
return ReturnUrl!;
|
||||
}
|
||||
|
||||
var relativePath = Navigation.ToBaseRelativePath(Navigation.Uri);
|
||||
if (string.IsNullOrWhiteSpace(relativePath))
|
||||
{
|
||||
|
||||
@@ -22,17 +22,13 @@
|
||||
passe par une phase cube obligatoire, puis la partie repart avec un
|
||||
nouveau rythme.
|
||||
</p>
|
||||
<UserAccessBar ReturnUrl="/application.html" />
|
||||
<div class="hero-actions">
|
||||
<a class="button primary" href="application.html">Ouvrir l'application</a>
|
||||
<a class="button secondary" href="authentication/login?returnUrl=%2Fapplication.html">Se connecter</a>
|
||||
<a class="button ghost" href="authentication/register?returnUrl=%2Fapplication.html">Creer un compte</a>
|
||||
</div>
|
||||
<div class="hero-actions hero-actions-utility">
|
||||
<a class="button secondary" href="reglement.html">Lire le reglement</a>
|
||||
<a class="button ghost" href="/ethan/">Ouvrir l'appli d'Ethan</a>
|
||||
<a class="button ghost" href="/brice/">Ouvrir l'appli de Brice</a>
|
||||
</div>
|
||||
<UserAccessBar />
|
||||
</div>
|
||||
|
||||
<aside class="hero-preview">
|
||||
|
||||
Reference in New Issue
Block a user