Tweak build info on download page develop master
authorBrecht Van Lommel <brecht@blender.org>
Thu, 25 Nov 2021 18:08:21 +0000 (19:08 +0100)
committerBrecht Van Lommel <brecht@blender.org>
Thu, 25 Nov 2021 18:16:23 +0000 (19:16 +0100)
* Leave out redundant branch name
* Leave out "Release" configuration, only show when it's "Debug"
* Rename "Candidate" to "Release Candidate"
* Rename "Arm" to "Apple Silicon" for consistency with download page

source/BuildsRenderer.php

index b0964d60431d6238725a7e040b314e40d433b785..580d779bef80d579d94360f9a857964187e1c0a0 100644 (file)
@@ -116,7 +116,7 @@ class BuildsRenderer {
       $sha256_url = $file_name_url . '.sha256';
   
       // $small_info = "$time_code - $build_hash - $file_extension - $file_size_code";
-      $small_info = "$time_code - $branch - $build_hash - $file_extension - $file_size_code";
+      $small_info = "$time_code - $build_hash - $file_extension - $file_size_code";
 
       $needs_hidden = in_array($file_extension, array("sha256"));
 
@@ -141,7 +141,12 @@ class BuildsRenderer {
       print('<small>' . $small_info . '</small></div></a>');
 
       print('<div class="build-meta">');
-      print('<a href="' . $file_name_url . '"><span class="build" title="Architecture">' . $build_architecure . ' <span class="configuration" title="Configuration">' . $build_configuration . '</span></a></span>');
+      print('<a href="' . $file_name_url . '"><span class="build" title="Architecture">' . $build_architecure);
+      if ($build_configuration != "release")
+      {
+        print(' <span class="configuration" title="Configuration">' . $build_configuration . '</span>');
+      }
+      print('</a></span>');
       print('<a href="' . $sha256_url . '" target="_blank" class="sha" title="SHA-256 for this file">SHA-256</a>');
 
       if ($build->directory_lister->isExperimental()) {
@@ -168,7 +173,7 @@ class BuildsRenderer {
       case BuildReleaseCycle::ALPHA: return 'Alpha';
       case BuildReleaseCycle::BETA: return 'Beta';
       case BuildReleaseCycle::STABLE: return 'Stable';
-      case BuildReleaseCycle::CANDIDATE: return 'Candidate';
+      case BuildReleaseCycle::CANDIDATE: return 'Release Candidate';
     }
   }
 
@@ -202,7 +207,7 @@ class BuildsRenderer {
     $architecture = str_replace("amd", "x", $architecture);
     if ($build->platform == "darwin") {
       $architecture = str_replace("x64", "Intel", $architecture);
-      $architecture = str_replace("arm64", "Arm", $architecture);
+      $architecture = str_replace("arm64", "Apple Silicon", $architecture);
     }
 
     return $architecture;