Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
2cd82a2f
Verified
Commit
2cd82a2f
authored
2 years ago
by
Andreas Ellewsen
Browse files
Options
Downloads
Patches
Plain Diff
Add english responsible text
parent
fb2e0e7f
No related branches found
No related tags found
1 merge request
!330
Add english responsible text
Pipeline
#140358
passed
2 years ago
Stage: venv update
Stage: tests and linting
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/.env
+1
-0
1 addition, 0 deletions
frontend/.env
frontend/src/appConfig.ts
+2
-0
2 additions, 0 deletions
frontend/src/appConfig.ts
frontend/src/routes/components/footer.tsx
+4
-1
4 additions, 1 deletion
frontend/src/routes/components/footer.tsx
with
7 additions
and
1 deletion
frontend/.env
+
1
−
0
View file @
2cd82a2f
...
@@ -9,6 +9,7 @@ REACT_APP_SUPPORT_URL=https://example.org
...
@@ -9,6 +9,7 @@ REACT_APP_SUPPORT_URL=https://example.org
REACT_APP_SUPPORT_URL_EN=https://example.org/en
REACT_APP_SUPPORT_URL_EN=https://example.org/en
REACT_APP_RESPONSIBLE_ORGANIZATION='Seksjon for integrasjon og elektroniske identiteter (INT)'
REACT_APP_RESPONSIBLE_ORGANIZATION='Seksjon for integrasjon og elektroniske identiteter (INT)'
REACT_APP_RESPONSIBLE_ORGANIZATION_EN='Department for System Integration and Identity Management (INT)'
REACT_APP_RESPONSIBLE_ORGANIZATION_LINK='https://www.usit.uio.no/om/organisasjon/bnt/usitint/'
REACT_APP_RESPONSIBLE_ORGANIZATION_LINK='https://www.usit.uio.no/om/organisasjon/bnt/usitint/'
REACT_APP_DISABLE_NIN_VERIFICATION='false'
REACT_APP_DISABLE_NIN_VERIFICATION='false'
This diff is collapsed.
Click to expand it.
frontend/src/appConfig.ts
+
2
−
0
View file @
2cd82a2f
...
@@ -41,6 +41,8 @@ export const enableIgaCheck: boolean = env.REACT_APP_ENABLE_IGA_CHECK === 'true'
...
@@ -41,6 +41,8 @@ export const enableIgaCheck: boolean = env.REACT_APP_ENABLE_IGA_CHECK === 'true'
/* Footer content */
/* Footer content */
export
const
responsibleOrganization
:
string
=
export
const
responsibleOrganization
:
string
=
env
.
REACT_APP_RESPONSIBLE_ORGANIZATION
as
string
env
.
REACT_APP_RESPONSIBLE_ORGANIZATION
as
string
export
const
responsibleOrganizationEn
:
string
=
env
.
REACT_APP_RESPONSIBLE_ORGANIZATION_EN
as
string
/* no links */
/* no links */
export
const
itRulesLink
:
string
=
env
.
REACT_APP_IT_RULES_LINK
as
string
export
const
itRulesLink
:
string
=
env
.
REACT_APP_IT_RULES_LINK
as
string
...
...
This diff is collapsed.
Click to expand it.
frontend/src/routes/components/footer.tsx
+
4
−
1
View file @
2cd82a2f
...
@@ -5,6 +5,7 @@ import { Link } from '@mui/material'
...
@@ -5,6 +5,7 @@ import { Link } from '@mui/material'
import
{
import
{
appInst
,
appInst
,
responsibleOrganization
,
responsibleOrganization
,
responsibleOrganizationEn
,
responsibleOrganizationLink
,
responsibleOrganizationLink
,
responsibleOrganizationLinkEn
,
responsibleOrganizationLinkEn
,
itRulesLink
,
itRulesLink
,
...
@@ -87,6 +88,8 @@ function Footer() {
...
@@ -87,6 +88,8 @@ function Footer() {
return
link
||
''
return
link
||
''
}
}
const
getResponsibleOrganization
=
()
=>
i18n
.
language
===
'
en
'
?
responsibleOrganizationEn
:
responsibleOrganization
const
getItRulesLink
=
()
=>
getLink
(
itRulesLinkEn
,
itRulesLink
)
const
getItRulesLink
=
()
=>
getLink
(
itRulesLinkEn
,
itRulesLink
)
const
getTechnicalSupportLink
=
()
=>
const
getTechnicalSupportLink
=
()
=>
getLink
(
technicalSupportLinkEn
,
technicalSupportLink
)
getLink
(
technicalSupportLinkEn
,
technicalSupportLink
)
...
@@ -127,7 +130,7 @@ function Footer() {
...
@@ -127,7 +130,7 @@ function Footer() {
{
t
(
'
footer:link.responsibleOrganization.header
'
)
}
{
t
(
'
footer:link.responsibleOrganization.header
'
)
}
</
LinkHeader
>
</
LinkHeader
>
<
StyledLink
href
=
{
getResponsibleOrganizationLink
()
}
>
<
StyledLink
href
=
{
getResponsibleOrganizationLink
()
}
>
{
r
esponsibleOrganization
}
{
getR
esponsibleOrganization
()
}
</
StyledLink
>
</
StyledLink
>
</
LinkSection
>
</
LinkSection
>
</
LinkContainer
>
</
LinkContainer
>
...
...
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