Commit 518226a9 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[TASK] Show "total downloads" text only if there are old downloads

parent 641c4801
Pipeline #20203 passed with stages
in 5 minutes
......@@ -132,10 +132,12 @@
<f:translate key="downloads_by_month" />
<i class="fas fa-info-circle" data-placement="right" data-toggle="tooltip" title="Packagist downloads are fetched during the day and are not up-to-date."></i>
</h4>
<p>
Total downloads (TER and Extension Manager) incl. November 2020:
<f:format.number decimals="0" thousandsSeparator=",">{extension.oldDownloads}</f:format.number>
</p>
<f:if condition="{extension.oldDownloads}">
<p>
Total downloads (TER and Extension Manager) incl. November 2020:
<f:format.number decimals="0" thousandsSeparator=",">{extension.oldDownloads}</f:format.number>
</p>
</f:if>
<script type="text/javascript">
var versionChartData = {extension.downloadsByTimeIntervalAsJson -> f:format.raw()};
var versionChartLastSync = "<f:format.date format='%B %d, %I:%M %P %Z'>{extension.lastDownloadSync}</f:format.date>";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment