aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/components/RepositoryNavbar.vue
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-06-02 20:13:48 +0200
committerHampusM <hampus@hampusmat.com>2021-06-02 20:13:48 +0200
commit371e3f13e0a046aeca3a2895e4a85f8b51059edf (patch)
tree8a98c46931b2fd10bc68b8a75eda99f9848c70f9 /src/frontend/components/RepositoryNavbar.vue
parent094de489fcbcbe21fdd6ab89deae09af625a7f7b (diff)
Added a tree page
Diffstat (limited to 'src/frontend/components/RepositoryNavbar.vue')
-rw-r--r--src/frontend/components/RepositoryNavbar.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/frontend/components/RepositoryNavbar.vue b/src/frontend/components/RepositoryNavbar.vue
index 87a32d6..53e1bfa 100644
--- a/src/frontend/components/RepositoryNavbar.vue
+++ b/src/frontend/components/RepositoryNavbar.vue
@@ -8,9 +8,11 @@
<li
v-for="(item, index) in nav_items" :key="index"
class="nav-item">
- <a
+ <router-link
class="nav-link fs-4" :class="{ active: activePage === item }"
- :aria-current="(activePage === item) ? 'page' : ''" :href="item">{{ item }}</a>
+ :aria-current="(activePage === item) ? 'page' : ''" :to="'/' + repository + '/' + item">
+ {{ item }}
+ </router-link>
</li>
<li class="nav-item ms-auto me-4">
<RepositoryCloneDropdown :repository="repository" class="d-block" />
@@ -48,5 +50,5 @@ export default {
url: `${window.location.protocol}//${window.location.host}/${this.repository}`
};
}
-}
+};
</script> \ No newline at end of file