Added a link to the root of the repository in ConstructNavbar()
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 9 Apr 2007 04:01:47 +0000 (04:01 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 9 Apr 2007 04:01:47 +0000 (04:01 +0000)
includes/functions.php

index cf35e0b474e821ce24075af63e52411fdcd2fb85..c159b2348ca8eb3139982528ec67e327190c3a2a 100644 (file)
 function ConstructNavbar()
 {
        $path = preg_split('#/#', BSRegister::Get('input')->in['path'], -1, PREG_SPLIT_NO_EMPTY);
+       
+       $html = '[<a href="' . BSRegister::Get('webpath') . '/browse/' . BSRegister::Get('input')->in['repos'] . ':">' . BSRegister::Get('input')->in['repos'] . '</a>]: ';
+       
        if (empty($path))
        {
-               return '<strong>/</strong>';
+               return $html . '<strong>/</strong>';
        }
        
-       $html = '';
        $build = '';
        foreach ($path AS $part)
        {