aboutsummaryrefslogtreecommitdiff
path: root/src/components/RepositoryNavbar.vue
blob: a1e10025d0d18bc8bedb365fbd7afcfbd1c15772 (plain)
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
<template>
	<div id="navbar" class="row mx-0">
		<div id="repo-navbar" class="col ms-4 ps-4">
			<nav class="navbar navbar-expand navbar-dark">
				<div class="container-fluid px-0">
					<div class="collapse navbar-collapse">
						<ul class="navbar-nav">
							<li v-for="(item, index) in nav_items" v-bind:key="index" class="nav-item">
								<a class="nav-link fs-4" :class="{ active: activePage === item }" :aria-current="(activePage === item) ? 'page' : ''" :href="item">{{ item }}</a>
							</li>
						</ul>
					</div>
				</div>
			</nav>
		</div>
	</div>
</template>

<script>
export default {
	name: "RepositoryNavbar",
	props: {
		activePage: String
	},
	data()
	{
		return {
			nav_items: ["log", "refs", "tree"]
		};
	}
}
</script>