forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMeetingNavigation.vue
More file actions
43 lines (36 loc) · 1.04 KB
/
Copy pathMeetingNavigation.vue
File metadata and controls
43 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<template lang="pug">
ul.nav.nav-tabs.meeting-nav(v-if='agendaStore.isLoaded')
li.nav-item(v-for='tab of tabs')
a.nav-link(
v-if='tab.href'
:href='`/meeting/` + agendaStore.meeting.number + `/` + tab.href'
)
i.bi.me-2.d-none.d-sm-inline(:class='tab.icon')
span {{tab.title}}
router-link.nav-link(
v-else
active-class='active'
:to='`/meeting/` + agendaStore.meeting.number + `/` + tab.key'
)
i.bi.me-2.d-none.d-sm-inline(:class='tab.icon')
span {{tab.title}}
</template>
<script setup>
import { useAgendaStore } from './store'
// STATE
const tabs = [
{ key: 'agenda', title: 'Agenda', icon: 'bi-calendar3' },
{ key: 'floor-plan', title: 'Floor plan', icon: 'bi-pin-map' },
{ key: 'plaintext', href: 'agenda.txt', title: 'Plaintext', icon: 'bi-file-text' }
]
// STORES
const agendaStore = useAgendaStore()
</script>
<style lang="scss">
@import "../shared/breakpoints";
.meeting-nav {
@media screen and (max-width: $bs5-break-sm) {
justify-content: center;
}
}
</style>