|
3 | 3 | - SPDX-License-Identifier: AGPL-3.0-or-later |
4 | 4 | --> |
5 | 5 | <template> |
6 | | - <NcSettingsSection :name="name" :description="description"> |
| 6 | + <NcSettingsSection :name="name"> |
| 7 | + <p v-linkify="{ linkify: true, text: description }" class="settings-section__description" /> |
7 | 8 | <fieldset class="settings-section__row"> |
8 | 9 | <legend>{{ t('libresign', 'Display signature mode') }}</legend> |
9 | 10 | <NcCheckboxRadioSwitch v-model="renderMode" |
@@ -349,11 +350,15 @@ import NcNoteCard from '@nextcloud/vue/components/NcNoteCard' |
349 | 350 | import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection' |
350 | 351 | import NcTextField from '@nextcloud/vue/components/NcTextField' |
351 | 352 | import { useIsDarkTheme } from '@nextcloud/vue/composables/useIsDarkTheme' |
| 353 | +import Linkify from '@nextcloud/vue/directives/Linkify' |
352 | 354 |
|
353 | 355 | import CodeEditor from '../../components/CodeEditor.vue' |
354 | 356 |
|
355 | 357 | export default { |
356 | 358 | name: 'SignatureStamp', |
| 359 | + directives: { |
| 360 | + Linkify, |
| 361 | + }, |
357 | 362 | components: { |
358 | 363 | Check, |
359 | 364 | CodeEditor, |
@@ -384,7 +389,7 @@ export default { |
384 | 389 | const backgroundType = loadState('libresign', 'signature_background_type') |
385 | 390 | return { |
386 | 391 | name: t('libresign', 'Signature stamp'), |
387 | | - description: t('libresign', 'Configure the content displayed with the signature. The text template uses Twig syntax.'), |
| 392 | + description: t('libresign', 'Configure the content displayed with the signature. The text template uses Twig syntax: https://twig.symfony.com/'), |
388 | 393 | showLoadingBackground: false, |
389 | 394 | backgroundType, |
390 | 395 | acceptMime: ['image/png'], |
@@ -696,6 +701,10 @@ export default { |
696 | 701 | .settings-section{ |
697 | 702 | display: flex; |
698 | 703 | flex-direction: column; |
| 704 | + &__description { |
| 705 | + color: var(--color-text-lighter); |
| 706 | + margin-bottom: 8px; |
| 707 | + } |
699 | 708 | &:deep(.settings-section__name) { |
700 | 709 | justify-content: unset; |
701 | 710 | } |
|
0 commit comments