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

Thunderforge noreply at scummvm.org
Mon Jan 10 00:39:49 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:
c4c9f7ebc4 WEB: Remove trailing bullet if recommended download lacks a description (#190)


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

Commit Message:
WEB: Remove trailing bullet if recommended download lacks a description (#190)

The recommended download section includes the version, OS, and description, with each separated by a bullet (•). Before, the bullet following the OS would always appear, even if there was no description after it. Now the bullet will only appear if there is a description.

Changed paths:
    templates/components/recommended_download.tpl


diff --git a/templates/components/recommended_download.tpl b/templates/components/recommended_download.tpl
index a1762df0..a9e2cd5e 100644
--- a/templates/components/recommended_download.tpl
+++ b/templates/components/recommended_download.tpl
@@ -5,7 +5,7 @@
             <a id="downloadButton" href={$recommendedDownload.url|download}>
                 <img src="/images/scummvm.png" alt="Download ScummVM icon">
                 <div class="downloadText">Download ScummVM</div>
-                <div id="downloadDetails">Version {$recommendedDownload.ver} • {$recommendedDownload.os} • {$recommendedDownload.desc}</div>
+                <div id="downloadDetails">Version {$recommendedDownload.ver} • {$recommendedDownload.os}{if $recommendedDownload.desc != ""} • {$recommendedDownload.desc}{/if}</div>
             </a>
         </div>
     </div>




More information about the Scummvm-git-logs mailing list