Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Administrator
m4lab_landing_page
Commits
c39030da
Commit
c39030da
authored
Oct 22, 2019
by
Wolfgang Knopki
Browse files
added dynamic header according to login status
parent
d344e37f
Pipeline
#102
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
js/headfoot.js
View file @
c39030da
...
...
@@ -79,7 +79,7 @@ function head(){
let
combolink
=
document
.
createElement
(
'
a
'
);
combolink
.
classList
.
add
(
"
dropdown-item
"
);
if
(
menu
[
j
].
combos
[
k
].
name
==
"
Projekte
"
&&
userAuthenticated
()){
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
+
"
?isAuthenticatedUser=true;
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
+
"
?isAuthenticatedUser=true
"
;
}
else
{
combolink
.
href
=
menu
[
j
].
combos
[
k
].
link
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment