mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 01:00:20 -04:00
Add profile templates
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
822623109f
commit
382ba66ab5
2 changed files with 32 additions and 0 deletions
27
core/templates/404-profile.php
Normal file
27
core/templates/404-profile.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
/** @var array $_ */
|
||||
/** @var \OCP\IL10N $l */
|
||||
/** @var \OCP\Defaults $theme */
|
||||
// @codeCoverageIgnoreStart
|
||||
if (!isset($_)) { //standalone page is not supported anymore - redirect to /
|
||||
require_once '../../lib/base.php';
|
||||
|
||||
$urlGenerator = \OC::$server->getURLGenerator();
|
||||
header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
|
||||
exit;
|
||||
}
|
||||
// @codeCoverageIgnoreEnd
|
||||
?>
|
||||
<?php if (isset($_['content'])) : ?>
|
||||
<?php print_unescaped($_['content']) ?>
|
||||
<?php else : ?>
|
||||
<div class="body-login-container update">
|
||||
<div class="icon-big icon-error icon-white"></div>
|
||||
<h2><?php p($l->t('Profile not found')); ?></h2>
|
||||
<p class="infogroup"><?php p($l->t('The profile does not exist.')); ?></p>
|
||||
<p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>">
|
||||
<?php p($l->t('Back to %s', [$theme->getName()])); ?>
|
||||
</a></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
5
core/templates/profile.php
Normal file
5
core/templates/profile.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<div
|
||||
id="vue-profile"
|
||||
class="icon-loading"
|
||||
style="width: 100%;">
|
||||
</div>
|
||||
Loading…
Reference in a new issue