Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Administrator
m4lab_landing_page
Commits
a8dec53a
Commit
a8dec53a
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
user profile changes reverted
parent
1ec3f07f
master
testing
Pipeline
#368
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/headfoot.js
+0
-22
js/headfoot.js
with
0 additions
and
22 deletions
+0
-22
js/headfoot.js
+
0
-
22
View file @
a8dec53a
...
@@ -23,27 +23,6 @@ function userAuthenticated(){
...
@@ -23,27 +23,6 @@ function userAuthenticated(){
}
}
}
}
var
user
=
false
;
function
profileExistsSetLogin
(){
$
.
get
(
"
/api/v1/profile
"
,
function
(
data
)
{
let
email
=
data
.
email
if
(
email
!=
''
){
user
=
true
;
document
.
getElementById
(
"
navbarDropdown4
"
).
innerHTML
=
"
Logout
"
;
document
.
getElementById
(
"
navbarDropdown4
"
).
href
=
"
/account/logout
"
;
}
})
.
done
(
function
()
{
console
.
log
(
"
done fetching profile info
"
);
})
.
fail
(
function
()
{
console
.
log
(
"
error fetching profile info
"
);
})
return
user
;
}
function
readCookie
(
cname
)
{
function
readCookie
(
cname
)
{
var
name
=
cname
+
"
=
"
;
var
name
=
cname
+
"
=
"
;
...
@@ -157,7 +136,6 @@ function head(){
...
@@ -157,7 +136,6 @@ function head(){
headitem
.
appendChild
(
headlink
);
headitem
.
appendChild
(
headlink
);
navelements
.
appendChild
(
headitem
);
navelements
.
appendChild
(
headitem
);
}
}
profileExistsSetLogin
()
//user has priority
let
searchitem
=
document
.
createElement
(
'
li
'
);
let
searchitem
=
document
.
createElement
(
'
li
'
);
searchitem
.
classList
.
add
(
"
nav-item
"
);
searchitem
.
classList
.
add
(
"
nav-item
"
);
let
searchinput
=
document
.
createElement
(
'
input
'
);
let
searchinput
=
document
.
createElement
(
'
input
'
);
...
...
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
Menu
Explore
Projects
Groups
Snippets