aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud23/use-external-docs-if-local-not-avail.patch
blob: 62b60117a843897a0ebecd7743c936c3c9f96c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Tue, 27 Jun 2017 02:07:00 +0200
Subject: [PATCH] Show link to external docs if local is not installed

--- a/apps/settings/templates/help.php
+++ b/apps/settings/templates/help.php
@@ -42,6 +42,17 @@
 </div>

 <div id="app-content" class="help-includes">
+<?php if ($_['localDocs']) { ?>
 	<iframe src="<?php print_unescaped($_['url']); ?>" class="help-iframe">
 	</iframe>
+<?php } else { ?>
+	<div class="section">
+		<h2>Local documentation is not installed</h2>
+		<p>Please use
+			<a href="<?php print_unescaped($_['url']); ?>" target="_blank" rel="noreferrer">
+				<?php p($l->t('online documentation')); ?> ↗
+			</a>
+		</p>
+	</div>
+<?php } ?>
 </div>