mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
#72 [templates] link to components when alternative pronouns possible
This commit is contained in:
parent
4c0b4d40ce
commit
1c6f56698a
@ -9,12 +9,24 @@
|
|||||||
<section>
|
<section>
|
||||||
<div class="alert alert-primary">
|
<div class="alert alert-primary">
|
||||||
<h2 class="text-center mb-0">
|
<h2 class="text-center mb-0">
|
||||||
<strong>{{ selectedTemplate.name(glue) }}</strong>
|
<strong v-if="nameOptions.length === 1">
|
||||||
|
{{ selectedTemplate.name(glue) }}
|
||||||
|
</strong>
|
||||||
|
<template v-else>
|
||||||
|
<template v-for="(nameOption, i) in nameOptions">
|
||||||
|
<nuxt-link :to="'/' + addSlash(nameOption)">
|
||||||
|
<strong>
|
||||||
|
{{ nameOption }}
|
||||||
|
</strong>
|
||||||
|
</nuxt-link>
|
||||||
|
<span v-if="i < nameOptions.length - 1">{{ glue }}</span>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
</h2>
|
</h2>
|
||||||
<p class="h6 small text-center mb-0 mt-2" v-if="selectedTemplate.description">
|
<p class="h6 small text-center mb-0 mt-2" v-if="selectedTemplate.description">
|
||||||
<em>
|
<em>
|
||||||
({{Array.isArray(selectedTemplate.description)
|
({{Array.isArray(selectedTemplate.description)
|
||||||
? ('Formy wymienne: ' + selectedTemplate.description.join(glue))
|
? ($t('template.alt.header') + ': ' + selectedTemplate.description.join(glue))
|
||||||
: selectedTemplate.description
|
: selectedTemplate.description
|
||||||
}})
|
}})
|
||||||
</em>
|
</em>
|
||||||
@ -110,6 +122,7 @@
|
|||||||
glue: ' ' + this.$t('template.or') + ' ',
|
glue: ' ' + this.$t('template.or') + ' ',
|
||||||
|
|
||||||
selectedTemplate,
|
selectedTemplate,
|
||||||
|
nameOptions: selectedTemplate.nameOptions(),
|
||||||
templateGroup: templateLibrary.find(selectedTemplate),
|
templateGroup: templateLibrary.find(selectedTemplate),
|
||||||
|
|
||||||
counter: 0,
|
counter: 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user