From 1e388423f83b7052790145b9367e83c49edd6fac Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Wed, 3 Aug 2022 12:18:11 +0200
Subject: [PATCH] speedup prj overview page

---
 public_html/deployment/classes/project.class.php | 7 +++++--
 public_html/deployment/pages/act_overview.php    | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php
index 6f12c363..a91804d2 100644
--- a/public_html/deployment/classes/project.class.php
+++ b/public_html/deployment/classes/project.class.php
@@ -3275,12 +3275,16 @@ class project extends base {
         }
 
         $sRepoBar = '';
+        /*
+            Speedup:
+            
         $aRepodata = $this->getRepoRevision();
         if (array_key_exists("revision", $aRepodata)) {
             $sRepoBar = $this->_getChecksumDiv($aRepodata["revision"]);
         } else {
             $sRepoBar = '<span class="error">' . t("error") . '</span>';
         }
+        */
 
         $sPackagebar = '';
         $aVersions = $this->_getVersionUsage();
@@ -3324,9 +3328,8 @@ class project extends base {
                         <a href="#h3repo" class="scroll-link">' . t("repositoryinfos") . '</a><br>
                         -->
                         ' . t("repositoryinfos") . '<br>
-                        <strong>
                         ' . $this->_aPrjConfig["build"]["type"] . '</strong> ' . preg_replace('/.*\@(.*):.*/', '($1)', $this->_aPrjConfig["build"]["url"])
-                    . ': <strong title="' . t('branch-select') . '">' . count($aBranches) . '</strong>'
+                        . ': <strong title="' . t('branch-select') . '">' . count($aBranches) . '</strong>'
                     . '<br>
                     </div>
                     <div>
diff --git a/public_html/deployment/pages/act_overview.php b/public_html/deployment/pages/act_overview.php
index 4a0d40ae..0cfe8e5c 100644
--- a/public_html/deployment/pages/act_overview.php
+++ b/public_html/deployment/pages/act_overview.php
@@ -59,7 +59,7 @@ if (!array_key_exists("prj", $aParams)) {
     } else {
         $sBuildErrorContent=$oHtml->getBox('info', t('build-failes-none'));
     }
-        
+
     $sListOfBranches='<h4>'.t('branch-select').'</h4><ol>';
     foreach($oPrj->getRemoteBranches() as $aBranch){
         $sListOfBranches.='<li title="'.$aBranch['revision'].'">'.$aBranch['label'] . '</li>';
-- 
GitLab