Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaita <maxence@pontapreta.net>2016-09-25 13:32:38 +0300
committerdaita <maxence@pontapreta.net>2016-09-25 13:32:38 +0300
commit85b8522608b91b84abcd14366080f871d7bc4c25 (patch)
tree50395b4f3d311d496325862aefc968e4338cac44 /templates
parentf958fac6c4759dad0d8553d66b1f44e8274f7024 (diff)
forceindex from admin
Diffstat (limited to 'templates')
-rw-r--r--templates/settings.admin.php22
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 :')) ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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:')) ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>