summaryrefslogtreecommitdiff
path: root/js/view/layout.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/view/layout.js')
-rw-r--r--js/view/layout.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/view/layout.js b/js/view/layout.js
index c733a8f..02ee639 100644
--- a/js/view/layout.js
+++ b/js/view/layout.js
@@ -53,11 +53,13 @@ guix.withLayout = (function() {
m(".navbar-header", m("img.logo", { src: "/images/logo.png" })),
m("ul.nav.navbar-nav", [
m("li.active", m("a", {
- href: "#",
- onclick: function() {
- m.route("/");
- }
+ config: m.route,
+ href: "/"
}, "Packages")),
+ m("li", m("a", {
+ config: m.route,
+ href: "/generations"
+ }, "Generations"))
]),
m("ul.nav.navbar-nav.navbar-right")
])),