[Scummvm-git-logs] scummvm-web master -> 1e89f3e7ca26d54c3f166ff25cf6273a65ee03ca

Mataniko mataniko at gmail.com
Fri Aug 27 02:34:22 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
1e89f3e7ca WEB: Moving ScummVM Wiki link from table to game page


Commit: 1e89f3e7ca26d54c3f166ff25cf6273a65ee03ca
    https://github.com/scummvm/scummvm-web/commit/1e89f3e7ca26d54c3f166ff25cf6273a65ee03ca
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2021-08-26T22:34:20-04:00

Commit Message:
WEB: Moving ScummVM Wiki link from table to game page

"Data Files" is now just a link to the ScummVM Wiki page. Moving to the same place as the new MobyGames link.

Changed paths:
    include/OrmObjects/Compatibility.php
    templates/pages/compatibility.tpl


diff --git a/include/OrmObjects/Compatibility.php b/include/OrmObjects/Compatibility.php
index cf6c6421..c693a653 100644
--- a/include/OrmObjects/Compatibility.php
+++ b/include/OrmObjects/Compatibility.php
@@ -47,9 +47,16 @@ class Compatibility extends BaseCompatibility
             $notes .= str_replace("- ", "\n- ", parent::getNotes()) . "\n";
         }
 
-        if ($this->getGame()->getMobyId() != '-1') {
-            $notes .= "\n\n**External Links:**\n";
-            $notes .= "- [MobyGames](https://www.mobygames.com/game/{$this->getGame()->getMobyId()})\n";
+        $links = [];
+        if ($this->getGame()->getMobyId() > 0) {
+            $links[] = "- [MobyGames](https://www.mobygames.com/game/{$this->getGame()->getMobyId()})";
+        }
+        if ($this->getGame()->getDataFiles()) {
+            $links[] = "- [ScummVM Wiki]({$this->getGame()->getDataFiles()})";
+        }
+        if ($links) {
+            $notes .= "\n\n**Links:**\n";
+            $notes .= join("\n", $links);
         }
 
         $config = \HTMLPurifier_Config::createDefault();
@@ -59,9 +66,4 @@ class Compatibility extends BaseCompatibility
         $notes = $purifier->purify($notes);
         return $notes;
     }
-
-    public function getDataFiles()
-    {
-        return $this->getGame()->getDataFiles();
-    }
 }
diff --git a/templates/pages/compatibility.tpl b/templates/pages/compatibility.tpl
index 2a69de2b..e3fd3a32 100644
--- a/templates/pages/compatibility.tpl
+++ b/templates/pages/compatibility.tpl
@@ -64,7 +64,6 @@
         <tr class="color4">
             <th class="gameFullName">{#compatibilityDetailsChartCol1#}</th>
             <th class="gameShortName">{#compatibilityDetailsChartCol2#}</th>
-            <th class="gameDatafiles">{#compatibilityDetailsChartCol3#}</th>
             <th class="gameSupportLevel">{#compatibilityDetailsChartCol4#}</th>
         </tr>
     </thead>
@@ -76,12 +75,6 @@
         <tr class="color{cycle values='2,0'}">
             <td class="gameFullName"><a href="{'/compatibility/'|lang}{$version}/{$game->getGame()->getId()}/">{$game->getGame()->getName()}</a></td>
             <td class="gameShortName">{$game->getGame()->getId()}</td>
-            <td class="gameDatafiles">
-            {if $game->getDatafiles()}
-                <a href="{$game->getDatafiles()}">{#compatabilityDetailsDetails#}</a></td>
-            {else}
-            ---
-            {/if}
             <td class="gameSupportLevel {($game->getVersion() == $version) ? ' updated' : $pct_class}">{$support_level}</td>
         </tr>
         {/foreach}




More information about the Scummvm-git-logs mailing list