From 4d8460517ab46f1967f0397fa557017d049760c7 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 31 Mar 2019 18:14:53 +0300 Subject: [PATCH] [WebUI] Combine Scan and Learning into one tab Closes: #1441 --- interface/css/rspamd.css | 33 ++--------- interface/index.html | 109 +++++++++++++++++-------------------- interface/js/app/rspamd.js | 4 +- interface/js/app/upload.js | 9 +-- 4 files changed, 64 insertions(+), 91 deletions(-) diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index b99c3e2b3..2c4e40ab8 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -63,11 +63,13 @@ textarea { display:inline; } +input[type="number"] { + width:4em !important; + padding:2px 0; + text-align:center; +} input.action-scores { - width:4em; - margin:5px -7em 5px 0; - padding:2px 0; - text-align:center; + margin:5px -7em 5px 0; } /* history table */ @@ -191,16 +193,6 @@ input.action-scores { background-color: #CDDBFF; } -.upload-textarea, -.scan-textarea { - width:100% !important; - } -.upload-textarea { - height:200px; - } -.scan-textarea { - height:300px; - } .stat-boxes { padding-left: 0; margin-right: -10px !important; @@ -500,19 +492,6 @@ td.maps-cell { margin-right: 9px; } -#learning p > button { - margin-top: 10px; - } -#learning div.widget-content:last-child > div.row { - padding: 0 0 15px 15px; - } -#learning form div.row { - padding-left: 15px; - } -#scanForm button { - margin-top: 10px; - } - #throughput div.widget-content { text-align: center; } diff --git a/interface/index.html b/interface/index.html index 8b9b65c9d..efe39a31d 100644 --- a/interface/index.html +++ b/interface/index.html @@ -31,8 +31,7 @@
  • Configuration
  • Symbols
  • -
  • -
  • Scan
  • +
  • Scan
  • History