From 65c18c4c5c68cb7c66ba4b984a641f52b9a4b18e Mon Sep 17 00:00:00 2001 From: Jonathan Belgourari Date: Sat, 5 Jul 2014 18:30:43 +0200 Subject: [PATCH] Help WebUI Fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First commit working on the help content and integration. Summary is here : https://www.icloud.com/iw/#numbers/BAIGS4VMg0uDnLQhOhqBzmIPZ3rb00E48p2F/ TVH_Help This commit : - Adds missing Help buttons on UI panes. - Creates docs files related to those buttons when missing. - Content will be reviewed later, currently « In progress » is displayed in new help files. --- docs/html/config_muxes.html | 3 +++ docs/html/config_muxsched.html | 3 +++ docs/html/config_networks.html | 3 +++ docs/html/config_services.html | 3 +++ src/webui/static/app/chconf.js | 3 +++ src/webui/static/app/mpegts.js | 12 ++++++++++++ 6 files changed, 27 insertions(+) create mode 100644 docs/html/config_muxes.html create mode 100644 docs/html/config_muxsched.html create mode 100644 docs/html/config_networks.html create mode 100644 docs/html/config_services.html diff --git a/docs/html/config_muxes.html b/docs/html/config_muxes.html new file mode 100644 index 00000000..e8a7fcb1 --- /dev/null +++ b/docs/html/config_muxes.html @@ -0,0 +1,3 @@ +
+

In progress

+
diff --git a/docs/html/config_muxsched.html b/docs/html/config_muxsched.html new file mode 100644 index 00000000..e8a7fcb1 --- /dev/null +++ b/docs/html/config_muxsched.html @@ -0,0 +1,3 @@ +
+

In progress

+
diff --git a/docs/html/config_networks.html b/docs/html/config_networks.html new file mode 100644 index 00000000..e8a7fcb1 --- /dev/null +++ b/docs/html/config_networks.html @@ -0,0 +1,3 @@ +
+

In progress

+
diff --git a/docs/html/config_services.html b/docs/html/config_services.html new file mode 100644 index 00000000..e8a7fcb1 --- /dev/null +++ b/docs/html/config_services.html @@ -0,0 +1,3 @@ +
+

In progress

+
diff --git a/src/webui/static/app/chconf.js b/src/webui/static/app/chconf.js index 1b70bfb1..74411146 100644 --- a/src/webui/static/app/chconf.js +++ b/src/webui/static/app/chconf.js @@ -200,6 +200,9 @@ tvheadend.channel_tab = function(panel) titleS: 'Channel', titleP: 'Channels', tabIndex: 0, + help: function() { + new tvheadend.help('Channels', 'config_channels.html'); + }, add: { url: 'api/channel', create: {} diff --git a/src/webui/static/app/mpegts.js b/src/webui/static/app/mpegts.js index 877e8512..a091b4eb 100644 --- a/src/webui/static/app/mpegts.js +++ b/src/webui/static/app/mpegts.js @@ -33,6 +33,9 @@ tvheadend.networks = function(panel) titleS: 'Network', titleP: 'Networks', tabIndex: 1, + help: function() { + new tvheadend.help('Networks', 'config_networks.html'); + }, add: { titleS: 'Network', select: { @@ -63,6 +66,9 @@ tvheadend.muxes = function(panel) titleP: 'Muxes', tabIndex: 2, hidemode: true, + help: function() { + new tvheadend.help('Muxes', 'config_muxes.html'); + }, add: { titleS: 'Mux', select: { @@ -236,6 +242,9 @@ tvheadend.services = function(panel) del: false, selected: selected, tbar: [mapButton], + help: function() { + new tvheadend.help('Services', 'config_services.html'); + }, lcol: [ { width: 50, @@ -264,6 +273,9 @@ tvheadend.mux_sched = function(panel) titleS: 'Mux Scheduler', titleP: 'Mux Schedulers', tabIndex: 4, + help: function() { + new tvheadend.help('Mux Schedulers', 'config_muxsched.html'); + }, hidemode: true, add: { url: 'api/mpegts/mux_sched',