diff options
author | Remi Collet <fedora@famillecollet.com> | 2011-01-23 11:58:43 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2011-01-23 11:58:43 +0100 |
commit | eb425e1bee76cb6ec7196506954229e77eea82ef (patch) | |
tree | 83e9dc1b5ec109c46b8d80b78dd61938c346c0a4 | |
parent | b4dcfb1a6c5b242e09cbd3bffdc43e7a62a30e45 (diff) |
display only ajax/pkgdb for active repo
-rw-r--r-- | smarty/templates/rpmphp/zoom.tpl | 4 | ||||
-rw-r--r-- | 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} @@ -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) |