Add member account
This commit is contained in:
1 parent
bf633b7060
commit
9ea0bee39d
8 files changed
+139
-23
No files matched your search
+15
-8
@@ -30,7 +30,7 @@
|
||||
<a class="skip-link" href="#main-content">Aller au contenu</a>
|
||||
|
||||
<header>
|
||||
<nav class="topbar" aria-label="Accès aux services">
|
||||
<nav class="topbar" aria-label="Navigation principale">
|
||||
<% unless request.path == "/" %>
|
||||
<a href="/">
|
||||
<img src="/images/favicon.svg" alt="Accueil NETig">
|
||||
@@ -42,17 +42,24 @@
|
||||
<a href="https://git.netig.net" target="_blank" rel="noopener noreferrer">NETgit ↗</a>
|
||||
|
||||
<% if rodauth.logged_in? %>
|
||||
<form method="post" action="<%= rodauth.logout_path %>">
|
||||
<%== rodauth.csrf_tag(rodauth.logout_path) %>
|
||||
<button class="topbar__account" type="submit">
|
||||
Déconnexion
|
||||
</button>
|
||||
</form>
|
||||
<% if request.path == "/account" %>
|
||||
<form method="post" action="<%= rodauth.logout_path %>">
|
||||
<%== rodauth.csrf_tag(rodauth.logout_path) %>
|
||||
<button class="topbar__account" type="submit">
|
||||
Déconnexion
|
||||
</button>
|
||||
</form>
|
||||
<% else %>
|
||||
<a class="topbar__account" href="/account">
|
||||
Mon espace →
|
||||
</a>
|
||||
<% end %>
|
||||
<% elsif request.path != rodauth.login_path %>
|
||||
<a class="topbar__account" href="<%= rodauth.login_path %>">
|
||||
Connexion ➜
|
||||
Mon espace →
|
||||
</a>
|
||||
<% end %>
|
||||
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
Reference in new issue
Block a user