diff options
-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) |