summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2015-12-30 23:59:27 -0500
committerBBcan177 <bbcan177@gmail.com>2015-12-30 23:59:27 -0500
commit152c01bed6bb4d066a9ebc0e0afaae75807dae10 (patch)
treec8446426c7cbae14da9474685bbd74a9dcf7c02c /src/usr/local/www/pkg_mgr.php
parent8dccfb20643cfda6b55429177410e6c66fcf0bbd (diff)
downloadpfsense-152c01bed6bb4d066a9ebc0e0afaae75807dae10.zip
pfsense-152c01bed6bb4d066a9ebc0e0afaae75807dae10.tar.gz
pkg_mgr - Fix disablepackagehistory
* Version title should always print * $g['disablepackagehistory'] only disables the changelog hyperlink
Diffstat (limited to 'src/usr/local/www/pkg_mgr.php')
-rw-r--r--src/usr/local/www/pkg_mgr.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php
index 8f05bd1..1c6c9fa 100644
--- a/src/usr/local/www/pkg_mgr.php
+++ b/src/usr/local/www/pkg_mgr.php
@@ -174,9 +174,7 @@ if (!$pkg_info || !is_array($pkg_info)):?>
<thead>
<tr>
<th><?=gettext("Name")?></th>
-<?php if (!$g['disablepackagehistory']):?>
<th><?=gettext("Version")?></th>
-<?php endif;?>
<th><?=gettext("Description")?></th>
<th></th>
</tr>
@@ -201,12 +199,14 @@ if (!$pkg_info || !is_array($pkg_info)):?>
<?=htmlspecialchars($index['shortname'])?>
</a>
</td>
-
-<?php if (!$g['disablepackagehistory']):?>
<td>
- <?=htmlspecialchars($index['version'])?>
- </td>
+<?php if (!$g['disablepackagehistory']):?>
+ <a target="_blank" title="<?=gettext("View changelog")?>" href="<?=htmlspecialchars($index['changeloglink'])?>">
+ <?=htmlspecialchars($index['version'])?></a>
+<?php else:?>
+ <?=htmlspecialchars($index['version'])?>
<?php endif;?>
+ </td>
<td>
<?=$index['desc']?>
<?php if (is_array($index['deps']) && count($index['deps'])):?>
OpenPOWER on IntegriCloud