cozy-rsvp/app/components/eventTypesNav.vue

36 lines
787 B
Vue
Raw Normal View History

2016-11-06 02:31:32 +01:00
<template lang="pug">
nav(class='horizontalMenu')
ul
li(v-for="(eventType, hash) in eventTypes")
router-link(v-bind:to="{ name: 'publicView', params: { hash: hash } }")
2016-11-07 02:51:21 +01:00
color-span(v-bind:color="eventType.color")
2016-11-06 02:31:32 +01:00
| New {{ eventType.length }} mins meeting
</template>
<style lang="stylus" scoped>
.horizontalMenu ul
margin 0
padding 0
margin-bottom 1em
.horizontalMenu li
display inline
text-align center
margin 1em
</style>
<script>
import colorSpan from './colorSpan.vue'
export default {
2016-11-07 02:51:21 +01:00
props: {
eventTypes: {
type: Object,
required: true
}
},
2016-11-06 02:31:32 +01:00
components: {
colorSpan
}
}
</script>