| 
1 | 1 | <template>  | 
2 |  | -    <p  | 
3 |  | -        xmlns:dct="http://purl.org/dc/terms/"  | 
 | 2 | +    <p xmlns:dct="http://purl.org/dc/terms/"  | 
4 | 3 |         xmlns:cc="http://creativecommons.org/ns#"  | 
5 |  | -        class="license-text"  | 
6 |  | -    >  | 
7 |  | -        <i18n  | 
8 |  | -            path="license-use.richtext.full-text"  | 
9 |  | -            tag="span"  | 
10 |  | -        >  | 
 | 4 | +        class="license-text">  | 
 | 5 | +        <i18n path="license-use.richtext.full-text" tag="span">  | 
11 | 6 |             <template v-slot:workTitle>  | 
12 |  | -                <a  | 
13 |  | -                    v-if="workUrl && isWeb"  | 
 | 7 | +                <a v-if="workUrl && isWeb"  | 
14 | 8 |                     :href="workUrl"  | 
15 |  | -                    rel="cc:attributionURL"  | 
16 |  | -                >  | 
 | 9 | +                    rel="cc:attributionURL">  | 
17 | 10 |                     <span v-if="!workTitle">{{ $t('license-use.richtext.workTitle') }}</span>  | 
18 |  | -                    <span  | 
19 |  | -                        v-else  | 
20 |  | -                        rel="dc:title"  | 
21 |  | -                    >{{ workTitle }}</span>  | 
 | 11 | +                    <span v-else rel="dc:title">  | 
 | 12 | +                        {{ workTitle }}  | 
 | 13 | +                    </span>  | 
22 | 14 |                 </a>  | 
23 |  | -                <span  | 
24 |  | -                    v-else-if="workTitle"  | 
25 |  | -                    rel="dc:title"  | 
26 |  | -                >{{ workTitle }}</span>  | 
 | 15 | +                <span v-else-if="workTitle" rel="dc:title">  | 
 | 16 | +                    {{ workTitle }}  | 
 | 17 | +                </span>  | 
27 | 18 |                 <span v-else>{{ $t('license-use.richtext.workTitle') }}</span>  | 
28 | 19 |             </template>  | 
29 | 20 |             <template v-slot:creator>  | 
30 |  | -                <a  | 
31 |  | -                    v-if="creatorProfileUrl && isWeb"  | 
 | 21 | +                <a v-if="creatorProfileUrl && isWeb"  | 
32 | 22 |                     :href="creatorProfileUrl"  | 
33 |  | -                    rel="cc:attributionURL"  | 
34 |  | -                >  | 
 | 23 | +                    rel="cc:attributionURL">  | 
35 | 24 |                     <span v-html="creatorSpan" /></a>  | 
36 |  | -                <span  | 
37 |  | -                    v-else-if="creatorName"  | 
38 |  | -                    v-html="creatorSpan"  | 
39 |  | -                />  | 
 | 25 | +                <span v-else-if="creatorName" v-html="creatorSpan" />  | 
40 | 26 |             </template>  | 
41 | 27 |             <template v-slot:by>  | 
42 | 28 |                 {{ $t(byString) }}  | 
 | 
45 | 31 |                 <span>{{ $t('license-use.richtext.licensed-text') }}</span>  | 
46 | 32 |             </template>  | 
47 | 33 |             <template v-slot:licenseName>  | 
48 |  | -                <a  | 
49 |  | -                    v-if="isWeb"  | 
 | 34 | +                <a v-if="isWeb"  | 
50 | 35 |                     :href="licenseUrl('web')"  | 
51 | 36 |                     target="_blank"  | 
52 | 37 |                     rel="license noopener noreferrer"  | 
53 |  | -                    style="display: inline-block;"  | 
54 |  | -                >{{ shortName }}</a>  | 
 | 38 | +                    style="display: inline-block;">  | 
 | 39 | +                    {{ shortName }}  | 
 | 40 | +                </a>  | 
55 | 41 |                 <span v-else>{{ shortName }}</span>  | 
56 |  | -                <LicenseIcons  | 
57 |  | -                    v-if="isWeb"  | 
 | 42 | +                <LicenseIcons v-if="isWeb"  | 
58 | 43 |                     :url="licenseUrl('web')"  | 
59 |  | -                    :icons-arr="iconsList"  | 
60 |  | -                />  | 
 | 44 | +                    :icons-arr="iconsList" />  | 
61 | 45 |             </template>  | 
62 | 46 |         </i18n>  | 
63 |  | -        <i18n  | 
64 |  | -            v-if="!isWeb"  | 
 | 47 | +        <i18n v-if="!isWeb"  | 
65 | 48 |             path="license-use.richtext.print-instructions"  | 
66 |  | -            tag="span"  | 
67 |  | -        >  | 
 | 49 | +            tag="span">  | 
68 | 50 |             <template v-slot:linkToLicenseDeed>  | 
69 | 51 |                 {{ licenseUrl('print') }}  | 
70 | 52 |             </template>  | 
71 | 53 |         </i18n>  | 
72 | 54 |     </p>  | 
73 | 55 | </template>  | 
74 |  | - | 
75 | 56 | <script>  | 
76 | 57 | import { mapGetters, mapState } from 'vuex'  | 
77 | 58 | import LicenseIcons from './LicenseIcons'  | 
 | 
0 commit comments