Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
videoag
frontend
Commits
3ebad15e
Commit
3ebad15e
authored
1 month ago
by
Simon Künzel
Browse files
Options
Downloads
Patches
Plain Diff
Remove button to old page
parent
4ff2dbc6
Branches
Branches containing commit
Tags
v2.0.1
Tags containing commit
No related merge requests found
Pipeline
#7598
passed
1 month ago
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/videoag/site/DefaultLayout.tsx
+1
-36
1 addition, 36 deletions
src/videoag/site/DefaultLayout.tsx
with
1 addition
and
36 deletions
src/videoag/site/DefaultLayout.tsx
+
1
−
36
View file @
3ebad15e
import
Link
from
"
next/link
"
;
import
type
React
from
"
react
"
;
import
{
MouseEvent
,
useEffect
,
useState
}
from
"
react
"
;
import
{
useEffect
,
useState
}
from
"
react
"
;
import
{
useRouter
}
from
"
next/router
"
;
import
{
DropdownButton
}
from
"
react-bootstrap
"
;
import
Collapse
from
"
react-bootstrap/Collapse
"
;
...
...
@@ -147,16 +147,6 @@ function NavBar({ status }: { status?: GetStatusResponse }) {
const
toggleNavbar
=
()
=>
{
setNavbarOpen
((
o
)
=>
!
o
);
};
const
switchToOldSite
=
(
event
:
MouseEvent
)
=>
{
if
(
window
.
location
.
pathname
.
indexOf
(
basePath
)
!==
-
1
)
{
event
.
preventDefault
();
let
newPath
=
window
.
location
.
pathname
;
if
(
!
newPath
.
startsWith
(
"
/
"
))
newPath
=
"
/
"
+
newPath
;
window
.
location
.
href
=
"
https://video.fsmpi.rwth-aachen.de
"
+
newPath
;
}
};
const
isHome
=
useRouter
().
pathname
===
"
/
"
;
return
(
...
...
@@ -197,19 +187,6 @@ function NavBar({ status }: { status?: GetStatusResponse }) {
url
=
"/feedback"
className
=
"flex-grow-1 text-center"
/>
<
a
className
=
{
"
nav-link p-2 rounded flex-grow-1 text-center d-flex align-items-center justify-content-center
"
}
href
=
{
"
/
"
}
onClick
=
{
switchToOldSite
}
style
=
{
{
color
:
"
#c66
"
}
}
>
<
span
aria-hidden
=
"true"
className
=
{
"
me-1 bi bi-arrow-down-left-square
"
}
></
span
>
</
a
>
</
div
>
<
button
...
...
@@ -280,18 +257,6 @@ function NavBar({ status }: { status?: GetStatusResponse }) {
Feedback
</
NavBarIcon
>
</
li
>
<
a
className
=
{
"
nav-link p-2 rounded mx-1
"
}
href
=
{
"
https://video.fsmpi.rwth-aachen.de
"
}
onClick
=
{
switchToOldSite
}
style
=
{
{
color
:
"
#c66
"
}
}
>
<
span
aria-hidden
=
"true"
className
=
{
"
me-1 bi bi-arrow-down-left-square
"
}
></
span
>
Zur alten Seite
</
a
>
</
ul
>
<
div
className
=
"flex-fill d-none d-lg-block"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment