Merge branch 'category-tooltipps' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5318-group-profile-description-etc

# Conflicts:
#	webapp/components/PostTeaser/PostTeaser.vue
#	webapp/pages/post/_id/_slug/index.vue
This commit is contained in:
Wolfgang Huß 2022-09-16 07:18:25 +02:00
commit a48a338e26
6 changed files with 54 additions and 2 deletions

View File

@ -9,6 +9,11 @@
:disabled="isDisabled(category.id)"
:icon="category.icon"
size="small"
v-tooltip="{
content: $t(`contribution.category.description.${category.slug}`),
placement: 'bottom-start',
delay: { show: 1500 },
}"
>
{{ $t(`contribution.category.name.${category.slug}`) }}
</base-button>

View File

@ -17,6 +17,11 @@
:filled="filteredCategoryIds.includes(category.id)"
:label="$t(`contribution.category.name.${category.slug}`)"
@click="toggleCategory(category.id)"
v-tooltip="{
content: $t(`contribution.category.description.${category.slug}`),
placement: 'bottom-start',
delay: { show: 1500 },
}"
/>
</li>
</template>

View File

@ -31,7 +31,7 @@
v-for="category in post.categories"
:key="category.id"
v-tooltip="{
content: $t(`contribution.category.name.${category.slug}`),
content: $t(`contribution.category.description.${category.slug}`),
placement: 'bottom-start',
}"
:icon="category.icon"

View File

@ -217,6 +217,27 @@
"infoSelectedNoOfMaxCategories": "{chosen} von {max} Themen ausgewählt"
},
"category": {
"description": {
"body-and-excercise": "Sport, Yoga, Massage, Tanzen, Entspannung",
"children": "Familie, Pädagogik, Schule, Prägung",
"culture": "Kunst, Theater, Musik, Fotografie, Film",
"economy": "Handel, Konsum, Marketing, Lieferketten",
"energy": "Öl, Gas, Kohle, Wind, Wasserkraft, Biogas, Atomenergie",
"finance": "Geld, Finanzsystem, Alternativwährungen",
"health": "Medizin, Ernährung, WHO, Impfungen, Schadstoffe",
"home": "Bauen, Lebensgemeinschaften, Tiny Houses, Gemüsegarten",
"it-and-media": "Nachrichten, Manipulation, Datenschutz, Überwachung, Datenkraken, KI, Software, Apps",
"law": "Menschenrechte, Gesetze, Verordnungen",
"miscellaneous": "Sonstiges",
"mobility": "Reise, Verkehr, Elektromobilität",
"nature": "Tiere, Pflanzen, Landwirtschaft, Ökologie, Artenvielfalt",
"networking": "Kooperation, Aktionsbündnisse, Solidarität, Hilfe",
"peace": "Krieg, Militär, soziale Verteidigung, Waffen, Cyberattacken",
"politics": "Demokratie, Mitbestimmung, Wahlen, Korruption, Parteien",
"psyche": "Seele, Gefühle, Glück",
"science": "Bildung, Hochschule, Publikationen",
"spirituality": "Religion, Werte, Ethik"
},
"name": {
"body-and-excercise": "Körper & Bewegung",
"children": "Kinder",

View File

@ -217,6 +217,27 @@
"infoSelectedNoOfMaxCategories": "{chosen} of {max} topics selected"
},
"category": {
"description": {
"body-and-excercise": "Sports, yoga, massage, relaxation",
"children": "Family, education, school, imprinting",
"culture": "Art, theatre, music, photography, film",
"economy": "Trade, consumption, marketing, supply chains",
"energy": "Oil, gas, coal, wind, hydrodynamic power, biogas, atomic energy",
"finance": "Money, financial system, alternative currencies",
"health": "Medicine, nutrition, WHO, vaccination, harmful substances",
"home": "Construction, communities, tiny houses, kitchen garden",
"it-and-media": "News, manipulation, privacy, control, data leeches, AI, software, apps",
"law": "Human rights, laws, decrees",
"miscellaneous": "Miscellaneous",
"mobility": "Travel, traffic, electric mobility",
"nature": "Animals, plants, agriculture, ecologu, biodiversity",
"networking": "Cooperation, action alliances, solidarity, help",
"peace": "War, military, social defence, arms, cyber attacks",
"politics": "Democracy, participation, elections, corruption, parties",
"psyche": "Soul, feelings, happiness",
"science": "Education, university, publications",
"spirituality": "Religion, values, ethics"
},
"name": {
"body-and-excercise": "Body & Excercise",
"children": "Children",

View File

@ -54,7 +54,7 @@
:icon="category.icon"
:name="$t(`contribution.category.name.${category.slug}`)"
v-tooltip="{
content: $t(`contribution.category.name.${category.slug}`),
content: $t(`contribution.category.description.${category.slug}`),
placement: 'bottom-start',
}"
/>