summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/luasrc/view
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-07-28 16:47:19 +0200
committerDirk Brenken <dev@brenken.org>2018-07-28 17:30:18 +0200
commitb7ed444cbb2428150688b2842e95491a740b1156 (patch)
tree928c0d5ddd822a2cd9920ee8cef5d43d130194cd /applications/luci-app-adblock/luasrc/view
parent771672ff7a654439dfe3b7b8661c90a1cca0ac6c (diff)
luci-app-adblock: small fixes
* fix possible controller error during json parsing * remaining code cleanup Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/luasrc/view')
-rw-r--r--applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm28
-rw-r--r--applications/luci-app-adblock/luasrc/view/adblock/runtime.htm11
2 files changed, 19 insertions, 20 deletions
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm b/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm
index f59e518574..a6f2286513 100644
--- a/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm
+++ b/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm
@@ -14,39 +14,39 @@ local anonclass = (not self.anonymous or self.sectiontitle) and "named" or "ano
.cbi-section-table-row,
.tr[data-title]::before
{
- text-align:left;
- vertical-align:top;
- margin-left:0px;
- padding-left:2px;
+ text-align: left;
+ vertical-align: top;
+ margin-left: 0px;
+ padding-left: 2px;
}
.table.cbi-section-table .th
{
- white-space:nowrap;
+ white-space: nowrap;
}
.table.cbi-section-table input
{
- width:7em;
+ width: 7em;
}
.cbi-section-table-row > .cbi-value-field [data-dynlist] > input,
.table.cbi-section-table input
{
- width:7em;
+ width: 7em;
}
.cbi-input-text
{
- text-align:left;
- padding-left:2px;
- outline:none;
- box-shadow:none;
- background:transparent;
- width:7em;
+ text-align: left;
+ padding-left: 2px;
+ outline: none;
+ box-shadow: none;
+ background: transparent;
+ width: 7em;
}
</style>
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
<% if self.title then -%>
- <legend><%=self.title%></legend>
+ <h3><%=self.title%></h3>
<%- end %>
<div class="cbi-section-descr"><%=self.description%></div>
<div class="cbi-section-node">
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm
index 7609ba5e66..05cdde73b9 100644
--- a/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm
+++ b/applications/luci-app-adblock/luasrc/view/adblock/runtime.htm
@@ -1,16 +1,15 @@
<%#
Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
This is free software, licensed under the Apache License, Version 2.0
-local sys = require("luci.sys")
-
-%>
+
<style type="text/css">
.runtime
{
- color:#0069d6;
- font-weight:bold;
- display:inline-block;
- width:100%;
+ color: #0069d6;
+ font-weight: bold;
+ display: inline-block;
+ width: 100%;
padding-top: 0.5rem;
}
</style>