added indexer stat to health page

This commit is contained in:
SJ
2013-08-09 10:13:54 +02:00
parent 8d201ed50a
commit 2a8c13d774
16 changed files with 221 additions and 2 deletions

View File

@ -67,6 +67,16 @@
<th><?php print $text_periodic_purge; ?></th>
<td><span class="<?php if($options['enable_purge'] == 1) { ?>ok<?php } else { ?>error<?php } ?>"><?php if($options['enable_purge'] == 1) { print $text_enabled; ?>. <a href="<?php print HEALTH_URL; ?>&toggle_enable_purge"><?php print $text_disable; ?></a><?php } else { print $text_disabled; ?>. <a href="<?php print HEALTH_URL; ?>&toggle_enable_purge"><?php print $text_enable; ?></a><?php } ?> </span></td>
</tr>
<?php if($indexer_stat[0]) { ?>
<tr>
<th><?php print $text_indexer_job; ?></th>
<td><?php print $text_last; ?>: <?php print $indexer_stat[0]; ?>, <?php print $text_next; ?>: <?php print $indexer_stat[1]; ?></td>
</tr>
<?php } ?>
</table>
</div>

View File

@ -126,6 +126,13 @@
</div>
</div>
<?php if($indexer_stat[0]) { ?>
<div class="row">
<div class="cellhealthleft"><?php print $text_indexer_job; ?></div>
<div class="cellhealthright"><?php print $text_last; ?>: <?php print $indexer_stat[0]; ?>, <?php print $text_next; ?>: <?php print $indexer_stat[1]; ?></div>
</div>
<?php } ?>
</div>