Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b283eff7 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

help patch fix

parent 41b9777d
Loading
Loading
Loading
Loading
+21 −32
Original line number Diff line number Diff line
@@ -17,25 +17,17 @@ help links are shown
 		$policy = new ContentSecurityPolicy()
--- ./apps/settings/templates/help.php	2024-07-25 16:17:46 +0530
+++ ./apps/settings/templates/help-new.php	2024-07-25 17:13:16 +0530
@@ -5,52 +5,32 @@
 	<div id="app-navigation" role="navigation" tabindex="0">
 		<ul>
 			<li>
-				<a class="icon-user <?php if ($_['mode'] === 'user') {
-					p('active');
-				} ?>" <?php if ($_['mode'] === 'user') {
-					print_unescaped('aria-current="page"');
-				} ?>
-					href="<?php print_unescaped($_['urlUserDocs']); ?>">
+				<a class="icon-user"
+					href="https://docs.nextcloud.com/server/<?php print_unescaped($_['ncVersion']); ?>/user_manual/en/" target="_blank" rel="noreferrer noopener">
@@ -12,45 +12,29 @@
 				} ?>
 					href="<?php print_unescaped($_['urlUserDocs']); ?>">
 					<span class="help-list__text">
-						<?php p($l->t('User documentation')); ?>
+					<?php p('Nextcloud ' . $_['ncVersion'] . ' ' . $l->t('User documentation')); ?> ↗
 					</span>
 				</a>
 			</li>
 		<?php if ($_['admin']) { ?>
-		<?php if ($_['admin']) { ?>
+
 			<li>
-				<a class="icon-user-admin <?php if ($_['mode'] === 'admin') {
-					p('active');
@@ -43,35 +35,31 @@ help links are shown
-					print_unescaped('aria-current="page"');
-				} ?>
-					href="<?php print_unescaped($_['urlAdminDocs']); ?>">
-					<span class="help-list__text">
-						<?php p($l->t('Administrator documentation')); ?>
-					</span>
+				<a href="https://doc.e.foundation/support-topics/e-cloud-e-email-account" class="icon-category-office" target="_blank" rel="noreferrer noopener">
+						<span class="help-list__text">
 					<span class="help-list__text">
-						<?php p($l->t('Administrator documentation')); ?>
+						<?php p('/e/' . ' ' . $l->t('Documentation'));  ?>
+						</span>
 					</span>
 				</a>
 			</li>
 		<?php } ?>
-		<?php } ?>
+		
 
 			<li>
-				<a href="https://docs.nextcloud.com" class="icon-category-office" target="_blank" rel="noreferrer noopener">
-					<span class="help-list__text">
+				<a href="https://community.e.foundation" class="icon-comment" target="_blank" rel="noreferrer noopener">
 					<span class="help-list__text">
-						<?php p($l->t('Documentation')); ?> ↗
-					</span>
+				<a href="https://community.e.foundation" class="icon-comment" target="_blank" rel="noreferrer noopener">
+						<span class="help-list__text">
+								<?php p($l->t('Forum')); ?> ↗
+						</span>
 				</a>
 			</li>
-				</a>
-			</li>
-			<li>
-				<a href="https://help.nextcloud.com" class="icon-comment" target="_blank" rel="noreferrer noopener">
-					<span class="help-list__text">
-						<?php p($l->t('Forum')); ?> ↗
-					</span>
-				</a>
-			</li>
 						<?php p($l->t('Forum')); ?> ↗
 					</span>
 				</a>
 			</li>
 	</div>
 
-	<div id="app-content" class="help-includes">
@@ -82,6 +70,7 @@ help links are shown
 	<div id="app-content">
 		<div class="help-wrapper">


--- ./apps/settings/css/help.css    2021-08-20 14:16:57.951439620 +0530
+++ ./apps/settings/css/help-new.css        2021-08-20 17:02:43.549016337 +0530
@@ -10,3 +10,12 @@