mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-06 14:48:02 -05:00
keywords
This commit is contained in:
@@ -7,9 +7,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--TODO Tags -->
|
||||
<div style="text-align: center">
|
||||
<keywords :recipe="recipe"></keywords>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="row" style="margin-top: 8px">
|
||||
<div class="col-12" style="text-align: center">
|
||||
<i>{{ recipe.description }}</i>
|
||||
</div>
|
||||
@@ -146,6 +148,7 @@ import ImageViewer from "@/components/ImageViewer";
|
||||
import Nutrition from "@/components/Nutrition";
|
||||
|
||||
import moment from 'moment'
|
||||
import Keywords from "@/components/Keywords";
|
||||
|
||||
Vue.prototype.moment = moment
|
||||
|
||||
@@ -164,6 +167,7 @@ export default {
|
||||
Step,
|
||||
RecipeContextMenu,
|
||||
Nutrition,
|
||||
Keywords,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
17
vue/src/components/Keywords.vue
Normal file
17
vue/src/components/Keywords.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div v-if="recipe.keywords.length > 0">
|
||||
<small :key="k.id" v-for="k in recipe.keywords" style="padding: 2px">
|
||||
{{k.icon}} {{k.name}}
|
||||
</small>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'Keywords',
|
||||
props: {
|
||||
recipe: Object,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user