Merge pull request #196 from gradido/link-to-whitepaper

feat: Link to Whitepaper in Content-Footer
This commit is contained in:
Moriz Wahl 2021-04-16 17:00:54 +02:00 committed by GitHub
commit b18ee8658f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 0 deletions

View File

@ -8,6 +8,7 @@
"imprint":"Impressum",
"privacy_policy":"Datenschutzerklärung",
"members_area": "Mitgliedsbereich",
"whitepaper": "Whitepaper",
"back":"Zurück",
"send":"Senden",
"transactions":"Transaktionen",

View File

@ -8,6 +8,7 @@
"imprint":"Legal notice",
"privacy_policy":"Privacy policy",
"members_area": "Member's area",
"whitepaper": "Whitepaper",
"back":"Back",
"send":"Send",
"transactions":"Transactions",

View File

@ -92,6 +92,12 @@ describe('ContentFooter', () => {
)
})
it('links to the whitepaper', () => {
expect(wrapper.findAll('a.nav-link').at(3).attributes('href')).toEqual(
'https://docs.google.com/document/d/1kcX1guOi6tDgnFHD9tf7fB_MneKTx-0nHJxzdN8ygNs/edit?usp=sharing',
)
})
describe('links are localized', () => {
beforeEach(() => {
mocks.$i18n.locale = 'de'
@ -120,6 +126,12 @@ describe('ContentFooter', () => {
'https://elopage.com/s/gradido/sign_in?locale=de',
)
})
it('links to the German whitepaper when locale is de', () => {
expect(wrapper.findAll('a.nav-link').at(3).attributes('href')).toEqual(
'https://docs.google.com/document/d/1jZp-DiiMPI9ZPNXmjsvOQ1BtnfDFfx8BX7CDmA8KKjY/edit?usp=sharing',
)
})
})
})
})

View File

@ -29,6 +29,16 @@
>
{{ $t('members_area') }}
</b-nav-item>
<b-nav-item
:href="
$i18n.locale === 'de'
? 'https://docs.google.com/document/d/1jZp-DiiMPI9ZPNXmjsvOQ1BtnfDFfx8BX7CDmA8KKjY/edit?usp=sharing'
: 'https://docs.google.com/document/d/1kcX1guOi6tDgnFHD9tf7fB_MneKTx-0nHJxzdN8ygNs/edit?usp=sharing'
"
target="_blank"
>
{{ $t('whitepaper') }}
</b-nav-item>
</b-nav>
</b-col>
</b-row>