summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-01-07 10:53:29 +0100
committerRemi Collet <remi@php.net>2025-01-07 10:53:29 +0100
commite18628b04921664d8eebe9983a2da01f88764819 (patch)
treed7b2c93ec4427493ea4e6318f3706a7f692108dc
parent4462c58ade980a83e60c78b41709bd8d4662b8ec (diff)
add packagist linkHEADmaster
-rw-r--r--smarty/templates/rpmphp/zoom.tpl2
-rw-r--r--zoom.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl
index 960a908..6bc91d1 100644
--- a/smarty/templates/rpmphp/zoom.tpl
+++ b/smarty/templates/rpmphp/zoom.tpl
@@ -43,6 +43,8 @@
<td{if $k eq 'Description'} id="pkgdb_desc"{/if}>
{if $k eq 'Bugzilla'}
<a href="{$v}">Active bugs</a>
+ {elseif $k eq 'Packagist'}
+ <a href="https://packagist.org/packages/{$v}">{$v}</a>
{elseif $k eq 'URL' or $k eq 'Pagure' or $k eq 'Packages' or $k eq 'Koschei'}
<a href="{$v}">{$v}</a>
{else}
diff --git a/zoom.php b/zoom.php
index bada131..8ce667c 100644
--- a/zoom.php
+++ b/zoom.php
@@ -140,7 +140,7 @@ if ( !isset($name) || !$name ) {
$summary['Type'] = $up['type'];
}
if ($rpm->pkgname) {
- $summary['Composer name'] = $rpm->pkgname;
+ $summary['Packagist'] = $rpm->pkgname;
} else if ($up && $up['channel']) {
$summary['Channel'] = $up['channel'];
}