projects
/
pve-docs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad2bfc4
)
pvedocs-include.php: add noscript tag
author
Dietmar Maurer
<dietmar@proxmox.com>
Wed, 4 May 2016 16:43:54 +0000
(18:43 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Wed, 4 May 2016 16:43:54 +0000
(18:43 +0200)
doc-debian/pvedocs-include.php
patch
|
blob
|
blame
|
history
diff --git
a/doc-debian/pvedocs-include.php
b/doc-debian/pvedocs-include.php
index f039a3c0dfa9ac04283c3cd4078d3db1cb0e5854..5fc53784a0b00341491ea97b3d7540b40578964e 100644
(file)
--- a/
doc-debian/pvedocs-include.php
+++ b/
doc-debian/pvedocs-include.php
@@
-49,6
+49,12
@@
function efPvedocsParserFunction_Render($parser, $param1 = '', $param2 = '') {
$content = file_get_contents("/usr/share/pve-docs/$param1");
$content = file_get_contents("/usr/share/pve-docs/$param1");
+ $output = "<noscript><div><p>" .
+ "This page requires java-script. To view " .
+ "this page without java-script goto " .
+ "<a href='/pve-docs/$param1'>$param1</a>" .
+ "</div></noscript>\n";
+
# hack to inject html without modifications my mediawiki parser
$encHtml = encodeURI($content);
$output .= "<div id='pve_embed_data'></div>";
# hack to inject html without modifications my mediawiki parser
$encHtml = encodeURI($content);
$output .= "<div id='pve_embed_data'></div>";