diff --git a/src/router.js b/src/router.js index d8624a4..1ca0040 100644 --- a/src/router.js +++ b/src/router.js @@ -139,9 +139,22 @@ export default new VueRouter({ }, { path: "/org/:orgname", - name: "org", component: Org, props: (route) => ({ orgname: route.params.orgname }), + children: [ + { + path: "", + name: "org", + component: projects, + props: (route) => ({ ownertype: "org", ownername: route.params.orgname }) + }, + { + path: "projects", + name: "org projects", + component: projects, + props: (route) => ({ ownertype: "org", ownername: route.params.orgname }) + }, + ] }, { diff --git a/src/views/Org.vue b/src/views/Org.vue index bf3316b..aae1040 100644 --- a/src/views/Org.vue +++ b/src/views/Org.vue @@ -1,32 +1,36 @@ - {{orgname}} + + {{orgname}} + - - Projects + + Projects - + @@ -40,6 +44,7 @@ export default { padding-left: 5px; margin-bottom: 25px; .org-name { + color: $grey-dark; padding-left: 5px; font-size: 1.5rem; padding-right: 1rem;