]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
wizard: description from ProfYaffle for hello page, added paragraphs
authorJaroslav Kysela <perex@perex.cz>
Fri, 4 Dec 2015 12:19:32 +0000 (13:19 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 4 Dec 2015 12:19:32 +0000 (13:19 +0100)
src/webui/static/app/wizard.js
src/wizard.c

index 745ca1fa59564e9bb2d610c5e4a9febb47cac23d..7f9690213d344486ef3991ac38af74d4ca3c3bcc 100644 (file)
@@ -71,7 +71,13 @@ tvheadend.wizard_start = function(page) {
         var text = getvalue(data, 'description');
         var c = '';
         if (icon)
-          c += '<img class="x-wizard-icon" src="' + icon + '"/>';
+            c += '<img class="x-wizard-icon" src="' + icon + '"/>';
+        if (text) {
+            var a = text.split('\n');
+            text = '';
+            for (var i = 0; i < a.length; i++)
+                text += '<p>' + a[i] + '</p>';
+        }
         c += '<div class="x-wizard-description">' + text + '</div>';
         var p = new Ext.Panel({
             width: 570,
index 962cb0603ae673365c5c50380b2683b312a35061..a6db071bf36054aa8d183ea12c26835285bbdc71 100644 (file)
@@ -96,8 +96,18 @@ static int hello_set_network(void *o, const void *v)
 }
 
 DESCRIPTION_FCN(hello, N_("\
-Enter allowed network (like 192.168.1.0/24) and user logins for administrator and ordinary user. \
-If the username is empty, anonymous access will be allowed.\
+Enter the access control details to secure your system. \
+The first part of this covers the IPv4 network details \
+for address-based access to the system; for example, \
+192.168.1.0/24 to allow local access only to 192.168.1.x clients, \
+or 0.0.0.0/0 or empty value for access from any system.\n\
+This works alongside the second part, which is a familiar \
+username/password combination, so provide these for both \
+an administrator and regular (day-to-day) user. \
+You can leave the username and password blank if you don't want \
+this part, and would prefer anonymous access to anyone.\n\
+This wizard should be run only on the initial setup. Please, cancel \
+it, if you are not willing to touch the current configuration.\
 "))
 
 wizard_page_t *wizard_hello(void)