Skip to content
Snippets Groups Projects
Commit cc8a57b4 authored by scmoritz's avatar scmoritz
Browse files

Removed hardcoded path prefix

parent f26e17d6
No related branches found
No related tags found
1 merge request!12Removed hardcoded path prefix
......@@ -7,28 +7,29 @@ module.exports = {
if (auth.authenticated === false) {
return m('div', [
m('nav', [
m('a', { href: '/' }, 'AMIV'),
m('a', { href: '/#!/events' }, 'Events'),
m('a', { href: '/#!/studydocuments' }, 'Studienunterlagen'),
m('a', { href: '/#!/jobs' }, 'Jobs'),
m('a', { href: '/#!/login' }, 'Login'),
m('a', { href: '/', oncreate: m.route.link }, 'AMIV'),
m('a', { href: '/events', oncreate: m.route.link }, 'Events'),
m('a', { href: '/studydocuments', oncreate: m.route.link }, 'Studienunterlagen'),
m('a', { href: '/jobs', oncreate: m.route.link }, 'Jobs'),
m('a', { href: '/login', oncreate: m.route.link }, 'Login'),
]),
m('main', vnode.children),
]);
}
return m('div', [
m('nav', [
m('a', { href: '/' }, 'AMIV'),
m('a', { href: '/#!/events' }, 'Events'),
m('a', { href: '/#!/studydocuments' }, 'Studienunterlagen'),
m('a', { href: '/#!/jobs' }, 'Jobs'),
m('a', { href: '/#!/profile' }, 'Profil'),
m('a', { href: '/', oncreate: m.route.link }, 'AMIV'),
m('a', { href: '/events', oncreate: m.route.link }, 'Events'),
m('a', { href: '/studydocuments', oncreate: m.route.link }, 'Studienunterlagen'),
m('a', { href: '/jobs', oncreate: m.route.link }, 'Jobs'),
m('a', { href: '/profile', oncreate: m.route.link }, 'Profil'),
m('a', {
href: '#',
href: '/',
onclick: () => {
auth.logout();
return false;
},
oncreate: m.route.link,
}, 'Logout'),
]),
m('main', vnode.children),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment