[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/media/includes/classes
From:       Ingo Malchow <imalchow () kde ! org>
Date:       2012-04-06 13:09:52
Message-ID: 20120406130952.69CE0AC89A () svn ! kde ! org
[Download RAW message or body]

SVN commit 1288467 by imalchow:

update git repo display for pko

 M  +12 -1     class_appdata.inc  


--- trunk/www/media/includes/classes/class_appdata.inc #1288466:1288467
@@ -201,10 +201,21 @@
             if ($this->data['repository'][0] == 'svn') {
                 return '<p><a \
href="http://websvn.kde.org/'.$this->data['repository'][1].'">Browse \
'.$this->name().' source code on WebSVN</a></p>';  } else \
                if($this->data['repository'][0] == 'git') {
-                return '<p><a \
href="https://projects.kde.org/projects/'.$this->data['parent'].'/'.$this->data['repository'][1].'/repository">Browse \
'.$this->name().' source code on Git</a></p>'; +				$path = '<p><a \
href="https://projects.kde.org/projects/'; +				if (isset($this->data['parent']) && \
$this->data['parent'] != '') { +					$path .= $this->data['parent']."/";
             }
+				// The main repository needs to be set, else it doesn't make sense at all
+				if (isset($this->data['repository'][1]) && $this->data['repository'][1] != '') {
+					$path .= $this->data['repository'][1];
+				} else {
             return '';
         }
+				$path .= '/repository">Browse '.$this->name().' source code on Git</a></p>';
+                return $path;
+			}
+            return '';
+        }
 
         function checkoutSourcesHtml() {
             if ($this->data['repository'][0] == 'svn') {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic