Provide a way to disable the pkg info link

This commit is contained in:
jim-p 2012-06-07 12:13:12 -04:00
parent db0d446fd4
commit 93888ad9ff
2 changed files with 8 additions and 2 deletions

View File

@ -230,8 +230,11 @@ include("head.inc");
<?=$index['maximum_version'] ?>
</td>
<td class="listbg" style="overflow:hidden; text-align:justify;" <?=domTT_title(gettext("Click package info for more details about ".ucfirst($index['name'])." package."))?>>
<?= $index['descr'] ?><br><br>
<?= $index['descr'] ?>
<?php if (! $g['disablepackageinfo']): ?>
<br><br>
<a target='_new' href='<?=$pkginfolink?>' style='align:center;color:#ffffff; filter:Glow(color=#ff0000, strength=12);'><?=$pkginfo?></a>
<?php endif; ?>
</td>
<td valign="middle" class="list" nowrap width="17">
<a onclick="return confirm('<?=gettext("Do you really want to install ".ucfirst($index['name'])." package?"); ?>')" href="pkg_mgr_install.php?id=<?=$index['name'];?>"><img <?=domTT_title(gettext("Install ".ucfirst($index['name'])." package."))?> src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a>

View File

@ -197,8 +197,11 @@ include("head.inc");
echo "<td class='{$tdclass}' ".domTT_title(gettext("Click on ".ucfirst($pkg['name'])." version to check it's changelog."),"return").">{$pkgver}</td>";
?>
<td class="listbg" style="overflow:hidden; text-align:justify;" <?=domTT_title(gettext("Click package info for more details about ".ucfirst($pkg['name'])." package."))?>>
<?=$currentvers[$pkg['name']]['descr'];?><br><br>
<?=$currentvers[$pkg['name']]['descr'];?>
<?php if (! $g['disablepackageinfo']): ?>
<br><br>
<a target='_new' href='<?=$pkginfolink?>' style='align:center;color:#ffffff; filter:Glow(color=#ff0000, strength=12);'><?=$pkginfo?></a>
<?php endif; ?>
</td>
<td valign="middle" class="list" nowrap>
<a onclick="return confirm('<?=gettext("Do you really want to remove {$pkg['name']} package?"); ?>')" href="pkg_mgr_install.php?mode=delete&pkg=<?= $pkg['name']; ?>">