Commit 9dba8167 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

test dynamic header

parent cc02ba33
Pipeline #119 passed with stage
in 3 seconds
...@@ -95,8 +95,7 @@ function head(){ ...@@ -95,8 +95,7 @@ function head(){
headlink.innerHTML="Account"; headlink.innerHTML="Account";
headlink.href="/account/"; headlink.href="/account/";
}else if(document.getElementById('loginswitch').getAttribute('authenticated') == '2'){ }else if(document.getElementById('loginswitch').getAttribute('authenticated') == '2'){
headlink.setAttribute("th:onclick", "@{/logout}"); headlink.href="./logout";
headlink.removeAttribute("href");
headlink.innerHTML="Logout"; headlink.innerHTML="Logout";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment