-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move inline docs to online documentation
Signed-off-by: Simon L <[email protected]>
- Loading branch information
Showing
5 changed files
with
49 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
.help-includes { | ||
overflow: hidden !important; | ||
} | ||
|
||
.help-list__text { | ||
margin-left: 24px; | ||
} | ||
|
||
.help-iframe { | ||
width: 100%; | ||
.help-wrapper { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
overflow: auto; | ||
width: 100%; | ||
} | ||
|
||
.help-content__heading { | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
.help-content { | ||
display: block; | ||
padding: 20px; | ||
} | ||
|
||
.help-content__body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.help-content__body > a { | ||
margin: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,32 @@ | ||
<?php | ||
\OC_Util::addStyle('settings', 'help'); | ||
?> | ||
<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"'); } ?> | ||
|
||
<div id="app-content"> | ||
<div class="help-wrapper"> | ||
<div class="help-content"> | ||
<h2 class="help-content__heading"> | ||
<?php p($l->t('Nextcloud documentation overview')); ?> | ||
</h2> | ||
<div class="help-content__body"> | ||
<a class="button <?php if ($_['mode'] === 'user') { | ||
p('active'); | ||
} ?>" <?php if ($_['mode'] === 'user') { print_unescaped('target="_blank" rel="noreferrer noopener"'); } ?> | ||
href="<?php print_unescaped($_['urlUserDocs']); ?>"> | ||
<span class="help-list__text"> | ||
<?php p($l->t('User documentation')); ?> | ||
</span> | ||
<?php p($l->t('User documentation')); ?> ↗ | ||
</a> | ||
</li> | ||
<?php if ($_['admin']) { ?> | ||
<li> | ||
<a class="icon-user-admin <?php if ($_['mode'] === 'admin') { | ||
p('active'); | ||
} ?>" <?php if ($_['mode'] === 'admin') { print_unescaped('aria-current="page"'); } ?> | ||
<a class="button <?php if ($_['mode'] === 'admin') { | ||
p('active'); | ||
} ?>" <?php if ($_['mode'] === 'admin') { print_unescaped('target="_blank" rel="noreferrer noopener"'); } ?> | ||
href="<?php print_unescaped($_['urlAdminDocs']); ?>"> | ||
<span class="help-list__text"> | ||
<?php p($l->t('Administrator documentation')); ?> | ||
</span> | ||
<?php p($l->t('Administrator documentation')); ?> ↗ | ||
</a> | ||
</li> | ||
<?php } ?> | ||
|
||
<li> | ||
<a href="https://docs.nextcloud.com" class="icon-category-office" target="_blank" rel="noreferrer noopener"> | ||
<span class="help-list__text"> | ||
<?php p($l->t('Documentation')); ?> ↗ | ||
</span> | ||
<a href="https://docs.nextcloud.com" class="button" target="_blank" rel="noreferrer noopener"> | ||
<?php p($l->t('General documentation')); ?> ↗ | ||
</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 href="https://help.nextcloud.com" class="button" target="_blank" rel="noreferrer noopener"> | ||
<?php p($l->t('Forum')); ?> ↗ | ||
</a> | ||
</li> | ||
</div> | ||
|
||
<div id="app-content" class="help-includes"> | ||
<iframe src="<?php print_unescaped($_['url']); ?>" class="help-iframe" tabindex="0"> | ||
</iframe> | ||
</div> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.