Display sources count on package details page

Show item count on sources section just like it is done for
dependencies and required by.

Fixes FS#45881.

Signed-off-by: Stefan Auditor <stefan.auditor@erdfisch.de>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Stefan Auditor 2015-08-16 22:50:22 +02:00 committed by Lukas Fleischer
parent 095986b449
commit 85b54157ea

View file

@ -290,7 +290,7 @@ endif;
<?php endif; ?>
</div>
<div id="pkgfiles" class="listing">
<h3><?= __('Sources') ?></h3>
<h3><?= __('Sources') . " (" . count($sources) . ")"?></h3>
</div>
<?php if (count($sources) > 0): ?>
<div>