Skip to content

Commit 7f4da27

Browse files
committed
update service status/instance decorations
1 parent 83179b0 commit 7f4da27

2 files changed

Lines changed: 23 additions & 33 deletions

File tree

htdocs/luci-static/resources/https-dns-proxy/status.js

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ var status = baseclass.extend({
211211
} else {
212212
text = _("Not installed or not found");
213213
}
214-
var statusText = E("output", { id: pkg.Name + "-status", class: "cbi-value-description" }, text);
214+
var statusText = E("output", { id: pkg.Name + "-status" }, text);
215215
var statusField = E("div", { class: "cbi-value-field" }, statusText);
216216
var statusDiv = E("div", { class: "cbi-value" }, [
217217
statusTitle,
@@ -225,14 +225,6 @@ var status = baseclass.extend({
225225
{ class: "cbi-value-title", for: pkg.Name + "-instances" },
226226
_("Service Instances")
227227
);
228-
text = _("See the %sREADME%s for details.").format(
229-
'<a href="' +
230-
pkg.URL +
231-
'#a-word-about-default-routing " target="_blank">',
232-
"</a>"
233-
);
234-
var instancesDescr = E("div", { class: "cbi-value-description" }, "");
235-
236228
text = "";
237229
Object.values(reply.ubus.instances).forEach((element) => {
238230
var resolver;
@@ -289,15 +281,17 @@ var status = baseclass.extend({
289281
"<br />"
290282
);
291283
});
292-
text +=
293-
"<br />" +
294-
_("Please %sdonate%s to support development of this project.").format(
284+
var instancesText = E("output", { id: pkg.Name + "-instances" }, text);
285+
var instancesDescr = E("div", { class: "cbi-value-description" },
286+
_(
287+
"Please %sdonate%s to support development of this project.",
288+
).format(
295289
"<a href='" + pkg.DonateURL + "' target='_blank'>",
296-
"</a>"
297-
);
298-
var instancesText = E("output", { id: pkg.Name + "-instances", class: "cbi-value-description" }, text);
290+
"</a>",
291+
));
299292
var instancesField = E("div", { class: "cbi-value-field" }, [
300293
instancesText,
294+
E("br"),
301295
instancesDescr,
302296
]);
303297
instancesDiv = E("div", { class: "cbi-value" }, [

po/templates/https-dns-proxy.pot

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
msgid ""
22
msgstr "Content-Type: text/plain; charset=UTF-8"
33

4-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:283
4+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:275
55
msgid "%s%s%s proxy at %s on port %s.%s"
66
msgstr ""
77

8-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:275
8+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:267
99
msgid "%s%s%s proxy on port %s.%s"
1010
msgstr ""
1111

@@ -213,11 +213,11 @@ msgstr ""
213213
msgid "Direct"
214214
msgstr ""
215215

216-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:407
216+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:401
217217
msgid "Disable"
218218
msgstr ""
219219

220-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:401
220+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:395
221221
msgid "Disabling %s service"
222222
msgstr ""
223223

@@ -237,11 +237,11 @@ msgstr ""
237237
msgid "ECS Optimized"
238238
msgstr ""
239239

240-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:388
240+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:382
241241
msgid "Enable"
242242
msgstr ""
243243

244-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:382
244+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:376
245245
msgid "Enabling %s service"
246246
msgstr ""
247247

@@ -498,7 +498,7 @@ msgstr ""
498498
msgid "Parameter"
499499
msgstr ""
500500

501-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:294
501+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:287
502502
msgid "Please %sdonate%s to support development of this project."
503503
msgstr ""
504504

@@ -558,11 +558,11 @@ msgstr ""
558558
msgid "Quad 9"
559559
msgstr ""
560560

561-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:350
561+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:344
562562
msgid "Restart"
563563
msgstr ""
564564

565-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:344
565+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:338
566566
msgid "Restarting %s service"
567567
msgstr ""
568568

@@ -609,15 +609,11 @@ msgstr ""
609609
msgid "Security Filter"
610610
msgstr ""
611611

612-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:228
613-
msgid "See the %sREADME%s for details."
614-
msgstr ""
615-
616612
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js:104
617613
msgid "Select the DNSMASQ Configs to update"
618614
msgstr ""
619615

620-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:433
616+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:427
621617
msgid "Service Control"
622618
msgstr ""
623619

@@ -663,11 +659,11 @@ msgstr ""
663659
msgid "Standard"
664660
msgstr ""
665661

666-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:331
662+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:325
667663
msgid "Start"
668664
msgstr ""
669665

670-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:325
666+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:319
671667
msgid "Starting %s service"
672668
msgstr ""
673669

@@ -676,11 +672,11 @@ msgstr ""
676672
msgid "Statistic Interval"
677673
msgstr ""
678674

679-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:369
675+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:363
680676
msgid "Stop"
681677
msgstr ""
682678

683-
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:363
679+
#: applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/https-dns-proxy/status.js:357
684680
msgid "Stopping %s service"
685681
msgstr ""
686682

0 commit comments

Comments
 (0)