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

List:       kde-commits
Subject:    [websites/utils-kde-org] /: fix all references to projects.kde.org
From:       Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date:       2016-11-15 18:57:52
Message-ID: E1c6ivY-0007KC-C7 () code ! kde ! org
[Download RAW message or body]

Git commit 1db6e029d524388679af9d5119384afbd35f3a6d by Rolf Eike Beer.
Committed on 15/11/2016 at 18:07.
Pushed by dakon into branch 'master'.

fix all references to projects.kde.org

While at it use the proper release names for the global releases instead of
blindly showing "KDE SC" for all of them. Also fix the branch names to use
"Applications/" as prefix for newer releases.

The links set with setOtherSourcesList() are still broken.

M  +1    -1    includes/class_repoactivitylinks.inc
M  +9    -5    includes/class_websvnlinks.inc
M  +1    -1    menu.inc

http://commits.kde.org/websites/utils-kde-org/1db6e029d524388679af9d5119384afbd35f3a6d


diff --git a/includes/class_repoactivitylinks.inc \
b/includes/class_repoactivitylinks.inc index c829d6c..f2d50fd 100644
--- a/includes/class_repoactivitylinks.inc
+++ b/includes/class_repoactivitylinks.inc
@@ -20,7 +20,7 @@ class RepoActivityLinks
  <p>\n
   <img src=\"../../icons/ox32-vcs-commit.png\" align=\"right\" hspace=\"20\" />
   Watch how development of ".$this->project->name." is going on
-  by visiting <a href=\"https://projects.kde.org/projects/kde/kdeutils/".$this->project->id."/activity\"
 +  by visiting <a href=\"https://cgit.kde.org/" . $this->project->id . ".git/\"
   >the project activity page</a>.
  </p>\n
 ";
diff --git a/includes/class_websvnlinks.inc b/includes/class_websvnlinks.inc
index edbbba9..0dead6e 100644
--- a/includes/class_websvnlinks.inc
+++ b/includes/class_websvnlinks.inc
@@ -16,6 +16,7 @@ class WebSvnLinks
     function show()
     {
         global $kdeActiveVersions;
+        global $kdeVersionNameList;
         global $kdeVersionStateTags;
         global $versionStateTexts;
 
@@ -24,14 +25,17 @@ class WebSvnLinks
         );
 
         foreach(array_slice($kdeActiveVersions, 1) as $ver) {
-            $kdeVersionPathList[$ver] = 'KDE/' . $ver;
+            if($ver >= "14.12")
+                $kdeVersionPathList[$ver] = 'Applications/' . $ver;
+            else
+                $kdeVersionPathList[$ver] = 'KDE/' . $ver;
         }
 
         print
 "
  <p>\n
   <img src=\"../../icons/ox32-c++src.png\" align=\"right\" hspace=\"20\" />
-  Browse the sources of ".$this->project->name." in the <a \
href=\"https://projects.kde.org/projects/kde/kdeutils/\">KDE Source Repository</a> \
online:\n +  Browse the sources of " . $this->project->name . " in the <a \
href=\"https://cgit.kde.org/\">KDE Source Repository</a> online:\n  </p>\n
 
  <table>\n
@@ -55,13 +59,13 @@ class WebSvnLinks
                 print
 "
   <tr>\n
-   <td><b>".$versionId."</b> (KDE SC ".$kdeVersionId.", \
                ".$versionStateText."):</td>\n
-   <td><a href=\"https://projects.kde.org/projects/kde/kdeutils/".$projectId."/repository/show?rev=".$versionPath."\">Program</a>";
 +   <td><b>" . $versionId . '</b> (' . $kdeVersionNameList[$kdeVersionId] . ', ' . \
$versionStateText . "):</td>\n +   <td><a href=\"https://cgit.kde.org/" . $projectId \
. ".git/log/?h=".$versionPath."\">Program</a>";  
                 foreach ($otherSourcesList as $name => $path)
                     print
 ",
-   <a href=\"https://projects.kde.org/projects/".$path->path($kdeVersionId)."?rev=".$path->branchName($versionPath)."\">".$name."</a>";
 +   <a href=\"https://cgit.kde.org/projects/".$path->path($kdeVersionId)."?rev=".$path->branchName($versionPath)."\">".$name."</a>";
  
                 print
 "  </td>\n
diff --git a/menu.inc b/menu.inc
index af6a441..ef7ffd4 100644
--- a/menu.inc
+++ b/menu.inc
@@ -31,7 +31,7 @@ $section->appendLink("Getting \
involved","http://www.kde.org/getinvolved/",false)  \
$section->appendLink("Localization","http://l10n.kde.org/stats/gui/trunk-kde4/package/kdeutils/",false);
  $section->appendLink('Roadmap for 15.12', \
'https://techbase.kde.org/Schedules/Applications/15.12_Feature_Plan#kdeutils', \
false);  $section->appendLink("TechBase","http://techbase.kde.org/Projects/Utils",false);
                
-$section->appendLink("Sources \
Listing","https://projects.kde.org/projects/kde/kdeutils",false); \
+$section->appendLink("Sources Listing","https://cgit.kde.org/",false);  \
$section->appendLink("API \
Documentation","http://api.kde.org/4.x-api/kdeutils-apidocs/",false);  \
$section->appendLink("Code Check \
Results","http://englishbreakfastnetwork.org/krazy/index.php?component=kde-4.x&amp;module=kdeutils",false);
  $section->appendLink("Patch Review \
Requests","http://reviewboard.kde.org/groups/kdeutils",false);


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

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