This commit is contained in:
clauspeterhuebner 2025-03-06 23:42:38 +01:00
parent abc8172832
commit b50cf2468c
2 changed files with 48 additions and 36 deletions

View File

@ -1,40 +1,46 @@
<template>
<div v-if="humhubAllowed" class="mb-3 p-3 card-circles">
<BContainer class="bg-white app-box-shadow gradido-border-radius p-4 mt--3">
<div class="h3">{{ $t('card-circles.headline') }}</div>
<div v-if="humhubAllowed" class="my-3 text-small">
<span v-for="(line, lineNumber) of $t('card-circles.allowed.text').split('\n')" :key="lineNumber">
{{ line }}
<br />
</span>
</div>
<div v-else class="my-3 text-small">
<span v-for="(line, lineNumber) of $t('card-circles.not-allowed.text').split('\n')" :key="lineNumber">
{{ line }}
<br />
</span>
</div>
<BRow class="my-1">
<BCol cols="12">
<div class="text-lg-end">
<BButton
v-if="humhubAllowed"
:href="humhubUri"
variant="gradido"
:disabled="enableButton === false"
target="_blank"
>
{{ $t('card-circles.allowed.button') }}
</BButton>
<RouterLink v-else to="/settings/extern">
<BButton variant="gradido">
{{ $t('card-circles.not-allowed.button') }}
<BContainer class="bg-white app-box-shadow gradido-border-radius p-4 mt--3">
<div class="h3">{{ $t('card-circles.headline') }}</div>
<div v-if="humhubAllowed" class="my-3 text-small">
<span
v-for="(line, lineNumber) of $t('card-circles.allowed.text').split('\n')"
:key="lineNumber"
>
{{ line }}
<br />
</span>
</div>
<div v-else class="my-3 text-small">
<span
v-for="(line, lineNumber) of $t('card-circles.not-allowed.text').split('\n')"
:key="lineNumber"
>
{{ line }}
<br />
</span>
</div>
<BRow class="my-1">
<BCol cols="12">
<div class="text-lg-end">
<BButton
v-if="humhubAllowed"
:href="humhubUri"
variant="gradido"
:disabled="enableButton === false"
target="_blank"
>
{{ $t('card-circles.allowed.button') }}
</BButton>
</RouterLink>
</div>
</BCol>
</BRow>
</BContainer>
<RouterLink v-else to="/settings/extern">
<BButton variant="gradido">
{{ $t('card-circles.not-allowed.button') }}
</BButton>
</RouterLink>
</div>
</BCol>
</BRow>
</BContainer>
</div>
</template>
<script setup>

View File

@ -3,13 +3,19 @@
<BContainer class="bg-white app-box-shadow gradido-border-radius p-4 mt--3">
<div class="h3">{{ $t('card-user-search.headline') }}</div>
<div v-if="gmsAllowed" class="my-3 text-small">
<span v-for="(line, lineNumber) of $t('card-user-search.allowed.text').split('\n')" :key="lineNumber">
<span
v-for="(line, lineNumber) of $t('card-user-search.allowed.text').split('\n')"
:key="lineNumber"
>
{{ line }}
<br />
</span>
</div>
<div v-else class="my-3 text-small">
<span v-for="(line, lineNumber) of $t('card-user-search.not-allowed.text').split('\n')" :key="lineNumber">
<span
v-for="(line, lineNumber) of $t('card-user-search.not-allowed.text').split('\n')"
:key="lineNumber"
>
{{ line }}
<br />
</span>