Project

General

Profile

« Previous | Next » 

Revision 364e4f74

Added by Jim Pingle about 13 years ago

Provide a way to disable the pkg info link

View differences:

usr/local/www/pkg_mgr.php
114 114
						<td width="25%" class="listhdrr"><?=gettext("Category"); ?></td>
115 115
<!--					<td width="10%" class="listhdrr">Size</td>	-->
116 116
						<td width="5%" class="listhdrr"><?=gettext("Status"); ?></td>
117
						<?php if (! $g['disablepackageinfo']): ?>
117 118
						<td width="5%" class="listhdrr"><?=gettext("Package Info"); ?></td>
119
						<?php endif; ?>
118 120
						<td width="50%" class="listhdr"><?=gettext("Description"); ?></td>
119 121
					</tr>
120 122
					<?php
......
193 195
							<br/>
194 196
							<?=$index['maximum_version'] ?>
195 197
						</td>
198
						<?php if (! $g['disablepackageinfo']): ?>
196 199
						<td class="listr">
197 200
						<?php
198 201
						if($index['pkginfolink']) {
......
203 206
						}
204 207
						?>
205 208
						</td>
209
						<?php endif; ?>
206 210
						<td class="listbg" class="listbg" style="overflow: hidden;">
207 211
							<?= $index['descr'] ?>
208 212
						</td>
usr/local/www/pkg_mgr_installed.php
89 89
						<tr>
90 90
							<td width="10%" class="listhdrr"><?=gettext("Package Name"); ?></td>
91 91
							<td width="20%" class="listhdrr"><?=gettext("Category"); ?></td>
92
							<?php if (! $g['disablepackageinfo']): ?>
92 93
							<td width="10%" class="listhdrr"><?=gettext("Package Info"); ?></td>
94
							<?php endif; ?>
93 95
							<td width="15%" class="listhdrr"><?=gettext("Package Version"); ?></td>
94 96
							<td width="45%" class="listhdr"><?=gettext("Description"); ?></td>
95 97
						</tr>
......
143 145
							<td class="listr">
144 146
								<?=$pkg['category'];?>
145 147
							</td>
148
							<?php if (! $g['disablepackageinfo']): ?>
146 149
							<td class="listr">
147 150
							<?php
148 151
							if($currentvers[$pkg['name']]['pkginfolink']) {
......
153 156
							}
154 157
							?>
155 158
							</td>
159
							<?php endif; ?>
156 160
							<td class="<?=$tdclass;?>">
157 161
									<?=$pkgver;?>
158 162
							</td>

Also available in: Unified diff