aboutsummaryrefslogtreecommitdiffstats
path: root/interface/index.html
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-03-06 11:07:27 +0300
committermoisseev <moiseev@mezonplus.ru>2020-03-06 11:07:27 +0300
commitfdd568d7c7cb2c68710a913f2ce2020f6337a066 (patch)
treee29cd0a50f68f174973e5876906930407ca96bbd /interface/index.html
parent2e46c5ace410cc8784319d398c861b3e12b7b021 (diff)
downloadrspamd-fdd568d7c7cb2c68710a913f2ce2020f6337a066.tar.gz
rspamd-fdd568d7c7cb2c68710a913f2ce2020f6337a066.zip
[WebUI] Add auto-refresh interval settings
Diffstat (limited to 'interface/index.html')
-rw-r--r--interface/index.html29
1 files changed, 25 insertions, 4 deletions
diff --git a/interface/index.html b/interface/index.html
index 63dda0d04..d68868093 100644
--- a/interface/index.html
+++ b/interface/index.html
@@ -40,10 +40,31 @@
<li role="presentation"><a id="scan_nav" aria-controls="scan" role="tab" href="#scan" data-toggle="tab">Scan<span class="learn" style="display: none;">/Learn</span></a></li>
<li role="presentation"><a id="history_nav" aria-controls="history" role="tab" href="#history" data-toggle="tab">History</a></li>
</ul>
- <ul class="nav navbar-nav nav-pills pull-right" style="display: none;">
- <li><a href="#" role="button" data-toggle="button" id="refresh"><i class="glyphicon glyphicon-refresh glyphicon-spin"></i> Refresh</a></li>
- <li><a href="#" role="button" data-toggle="button" id="disconnect"><i class="glyphicon glyphicon-off"></i> Disconnect</a></li>
- </ul>
+ <form class="navbar-form navbar-right" style="display: none;">
+ <div class="btn-group">
+ <a href="#" class="btn btn-default" role="button" data-toggle="button" id="refresh"><i class="glyphicon glyphicon-refresh glyphicon-spin"></i> Refresh</a>
+ <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="autoRefresh">
+ <span id="countdown">--:--</span> <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu">
+ <li class="preset"><a href="#" data-value=null>Disable</a></li>
+ <li class="preset divider" role="separator"></li>
+ <li class="preset active"><a href="#" data-value="10000">10 seconds</a></li>
+ <li class="preset"><a href="#" data-value="30000">30 seconds</a></li>
+ <li class="preset divider" role="separator"></li>
+ <li class="preset"><a href="#" data-value="60000">1 minute</a></li>
+ <li class="preset"><a href="#" data-value="600000">10 minutes</a></li>
+ <li class="preset"><a href="#" data-value="1800000">30 minutes</a></li>
+ <li class="preset divider" role="separator"></li>
+ <li class="preset"><a href="#" data-value="3600000">1 hour</a></li>
+
+ <li class="dynamic"><a href="#" data-value=null>Disable</a></li>
+ <li class="dynamic divider" role="separator"></li>
+ <li class="dynamic active"><a href="#" id="dynamic-item" data-value="3600000">1 hour</a></li>
+ </ul>
+ </div>
+ <a href="#" class="btn btn-default" role="button" data-toggle="button" id="disconnect"><i class="glyphicon glyphicon-off"></i> Disconnect</a>
+ </form>
</div>
</nav>