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
2ab87d2a
Commit
2ab87d2a
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
test dynamic header
parent
8abfefd6
Pipeline
#116
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/headfoot.js
+11
-2
js/headfoot.js
with
11 additions
and
2 deletions
+11
-2
js/headfoot.js
+
11
-
2
View file @
2ab87d2a
...
@@ -95,8 +95,17 @@ function head(){
...
@@ -95,8 +95,17 @@ 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
.
innerHTML
=
"
Logout
"
;
headlink
.
remove
();
headlink
.
href
=
"
./logout
"
;
let
headform
=
document
.
createElement
(
'
form
'
);
headform
.
setAttribute
(
"
th:action
"
,
"
@{/logout}
"
);
headform
.
setAttribute
(
"
method
"
,
"
POST
"
);
let
headbutton
=
document
.
createElement
(
'
button
'
);
headbutton
.
name
=
'
logout
'
;
headbutton
.
type
=
"
Submit
"
;
headbutton
.
innerHTML
=
"
Logout
"
;
headbutton
.
classList
.
add
(
"
btn
"
,
"
btn-md
"
,
"
btn-danger
"
);
headform
.
appendChild
(
headbutton
);
headitem
.
appendChild
(
headform
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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