[Scummvm-git-logs] scummvm-web master -> d7162fa558c58d845383eecdd6c02cdab539214a

Thunderforge noreply at scummvm.org
Mon Jan 10 00:39:36 UTC 2022


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:
d7162fa558 WEB: Removing Win32 label in extra info (#189)


Commit: d7162fa558c58d845383eecdd6c02cdab539214a
    https://github.com/scummvm/scummvm-web/commit/d7162fa558c58d845383eecdd6c02cdab539214a
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2022-01-09T18:39:34-06:00

Commit Message:
WEB: Removing Win32 label in extra info (#189)

Now that we have .exe files for 64-bit Windows, it's no longer accurate to say `Win32 .exe`. This was also unique behavior for Windows; we did not indicate bitness in this way for any other operating system.

Changed paths:
    include/Models/DownloadsModel.php
    templates/components/list_items.tpl


diff --git a/include/Models/DownloadsModel.php b/include/Models/DownloadsModel.php
index 0085db81..08c5ad79 100644
--- a/include/Models/DownloadsModel.php
+++ b/include/Models/DownloadsModel.php
@@ -121,10 +121,6 @@ class DownloadsModel extends BasicModel
             $data = ""; //$download->getExtraInfo();
             if (is_array($data)) {
                 $extra_text = $data['size'] . " ";
-                if ($data['ext'] == '.exe') {
-                    $extra_text = $extra_text . 'Win32 ';
-                }
-
                 $extra_text .= $data['ext'] . " " . $data['msg'];
             } else {
                 $extra_text = $data;
diff --git a/templates/components/list_items.tpl b/templates/components/list_items.tpl
index ce07293c..fdb640ef 100644
--- a/templates/components/list_items.tpl
+++ b/templates/components/list_items.tpl
@@ -10,7 +10,7 @@
                         <span class="download-extras">
                             {if is_array($data)}
                                 (
-                                {$data.size} {if $data.ext == '.exe'}Win32 {/if}{$data.ext}{if $data.date != ""}{#listItemsDate#} {$data.date} {/if}
+                                {$data.size} {$data.ext}{if $data.date != ""}{#listItemsDate#} {$data.date} {/if}
                                  
                                 {if $data.sha256 != ""} <span class="sha256-toggle" onclick="this.nextSibling.classList.toggle('hidden')"> sha256</span><span class="sha256-text hidden"> <a href="{{eval var=$item->getURL()}|release|download}.sha256">{$data.sha256}</a></span>{/if}
                                 ) {if $data.msg != ""}{$data.msg}{/if}




More information about the Scummvm-git-logs mailing list