[aur-dev] [PATCH] Display sources count on package details page

Stefan Auditor stefan.auditor at erdfisch.de
Sun Aug 16 20:50:22 UTC 2015


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 at erdfisch.de>
---
 web/template/pkg_details.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index ae8d084..c79c00f 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -285,7 +285,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>
-- 
2.5.0


More information about the aur-dev mailing list