From 6b9f92c56a651178b9f03bdc3c3f6833cdf0c60a Mon Sep 17 00:00:00 2001 From: moisseev Date: Sat, 18 Jul 2020 18:32:34 +0300 Subject: [Minor] Fix maps list layout --- interface/css/rspamd.css | 4 ---- interface/index.html | 2 +- interface/js/app/config.js | 13 +++++++------ 3 files changed, 8 insertions(+), 11 deletions(-) (limited to 'interface') diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css index d468696dc..6755a160e 100644 --- a/interface/css/rspamd.css +++ b/interface/css/rspamd.css @@ -285,10 +285,6 @@ table#symbolsTable input[type="number"] { background-color: #cddbff; } -td.maps-cell { - vertical-align: middle; -} - .map-link { display: block; color: #0088cc; diff --git a/interface/index.html b/interface/index.html index c7b941c7e..163de31aa 100644 --- a/interface/index.html +++ b/interface/index.html @@ -221,7 +221,7 @@ Lists
- +
diff --git a/interface/js/app/config.js b/interface/js/app/config.js index 2c65bfff1..8b391582b 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -137,12 +137,13 @@ define(["jquery", "codejar", "linenumbers", "prism"], var $tbody = $(""); $.each(data, function (i, item) { - var label = (item.editable === false || rspamd.read_only) - ? "Read" - : "Read Write"; - var $tr = $(""); - $("" + label + "").appendTo($tr); - var $span = $("" + item.uri + "").data("item", item); + var $td = 'Read'; + if (!(item.editable === false || rspamd.read_only)) { + $td = $($td).append(' Write'); + } + var $tr = $("").append($td); + + var $span = $('' + item.uri + "").data("item", item); $span.wrap("").parent().appendTo($tr); $("" + item.description + "").appendTo($tr); $tr.appendTo($tbody); -- cgit v1.2.3