diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/settings.admin.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/templates/settings.admin.php b/templates/settings.admin.php index c409935..bafbbdf 100644 --- a/templates/settings.admin.php +++ b/templates/settings.admin.php @@ -45,7 +45,27 @@ if ($_['configured'] == '1') { <tr> <td style="width: 250px; text-align: right;"><label> <?php p($l->t('Number of documents :')) ?> </label></td> - <td><?php ($_['current_docs'] == false) ? p('Solr Servlet is down') : p($_['current_docs']); ?></td> + <td><?php ($_['current_docs'] === false) ? p('Solr Servlet is down') : p($_['current_docs']); ?></td> + </tr> + <tr> + <td style="width: 250px; text-align: right;"><label> + <?php p($l->t('Last index:')) ?> </label></td> + <td><?php + + if ($_['last_index'] > 0) { + p(date('r', $_['last_index'])); + ?></td> + <td><?php + if ($_['needed_index'] == 0) { + ?> + <button type="button" id="nextant_force_index" + style="width: 170px"><?php p($l->t('Force re-index')) ?></button> + <?php + } else + p('index scheduled'); + } else + p('never'); + ?></td> </tr> <?php } ?> <tr> |