aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/layout.noscript.warning.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-02-09 16:01:52 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-02-09 16:01:52 +0100
commit4172ba48d4c2ffc34c2020b256aca333de692c23 (patch)
treea4e0fa80ddea573debbbc4fd55653ebb93fa431b /core/templates/layout.noscript.warning.php
parentb432ea29c9d99a386077c738d6e29d4bc093c15f (diff)
downloadnextcloud-server-4172ba48d4c2ffc34c2020b256aca333de692c23.tar.gz
nextcloud-server-4172ba48d4c2ffc34c2020b256aca333de692c23.zip
Deduplicate template code and do not translate the links
Diffstat (limited to 'core/templates/layout.noscript.warning.php')
-rw-r--r--core/templates/layout.noscript.warning.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/templates/layout.noscript.warning.php b/core/templates/layout.noscript.warning.php
new file mode 100644
index 00000000000..ba781f5502e
--- /dev/null
+++ b/core/templates/layout.noscript.warning.php
@@ -0,0 +1,11 @@
+<noscript>
+ <div id="nojavascript">
+ <div>
+ <?php print_unescaped(str_replace(
+ ['{linkstart}', '{linkend}'],
+ ['<a href="http://enable-javascript.com/" target="_blank" rel="noreferrer">', '</a>'],
+ $l->t('This application requires JavaScript for correct operation. Please {linkstart}enable JavaScript{linkend} and reload the page.')
+ )); ?>
+ </div>
+ </div>
+</noscript>