diff options
author | daita <maxence@pontapreta.net> | 2016-09-25 13:32:38 +0300 |
---|---|---|
committer | daita <maxence@pontapreta.net> | 2016-09-25 13:32:38 +0300 |
commit | 85b8522608b91b84abcd14366080f871d7bc4c25 (patch) | |
tree | 50395b4f3d311d496325862aefc968e4338cac44 /templates | |
parent | f958fac6c4759dad0d8553d66b1f44e8274f7024 (diff) |
forceindex from admin
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> |