From eb425e1bee76cb6ec7196506954229e77eea82ef Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 23 Jan 2011 11:58:43 +0100 Subject: display only ajax/pkgdb for active repo --- smarty/templates/rpmphp/zoom.tpl | 4 ++-- zoom.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl index d8416ac..82e1a54 100644 --- a/smarty/templates/rpmphp/zoom.tpl +++ b/smarty/templates/rpmphp/zoom.tpl @@ -78,7 +78,7 @@ {if $p->repo_main neq $prev} {if $fedpkg} {getBranchPeople branch=$p->repo_main people='owner'} - {else} + {elseif $p->active} {$ajax_infos} {/if} {/if} @@ -87,7 +87,7 @@ {if $p->repo_main neq $prev} {if $fedpkg} {getBranchPeople branch=$p->repo_main people='people'} - {else} + {elseif $p->active} {$ajax_infos} {/if} {/if} diff --git a/zoom.php b/zoom.php index b71a044..f20c730 100644 --- a/zoom.php +++ b/zoom.php @@ -95,7 +95,7 @@ if ( !isset($name) || !$name ) { $uptable = new TableUpstream($db); - $sql = "SELECT rpm.*, + $sql = "SELECT rpm.*, repo.active, CONCAT(repo.url,rpm.name,'-',rpm.ver,'-',rpm.rel,'.src.rpm') as rpmurl FROM rpm INNER JOIN repo ON (repo.main=rpm.repo_main AND repo.sub=rpm.repo_sub) -- cgit