From ea7c33cb8e9671a9da6086ac68a26ed7560254b6 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 8 Apr 2019 19:34:31 +0200 Subject: [PATCH] Add git.pvv.ntnu.no to the website --- inc/navbar.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/navbar.php b/inc/navbar.php index 5e9d3bb..3c2643e 100644 --- a/inc/navbar.php +++ b/inc/navbar.php @@ -11,12 +11,13 @@ function navbar($depth, $active = NULL) { 'Webmail' => 'mail', //'Webmail' => 'https://webmail.pvv.ntnu.no/', 'Wiki' => 'pvv', + 'Git' => 'https://git.pvv.ntnu.no/', ]; foreach($menuItems as $caption => $link) { $isActive = $active === $link; - //if ($caption !== 'Webmail') { + if (substr( $link, 0, 4 ) != "http") { $link = rtrim(str_repeat('../', $depth) . $link, '/') . '/'; - //} + } //if ($isActive) $link = '#';