diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-10-14 10:48:16 +0300 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2021-10-18 09:59:16 +0300 |
commit | 382ba66ab5e1a675347e86d93593eb228da253bb (patch) | |
tree | d9773dbab561db8ed225aabf97263f42ef641029 /core/templates | |
parent | 822623109f4f4b3252c04a5c0ccf6757a882e771 (diff) |
Add profile templates
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/404-profile.php | 27 | ||||
-rw-r--r-- | core/templates/profile.php | 5 |
2 files changed, 32 insertions, 0 deletions
diff --git a/core/templates/404-profile.php b/core/templates/404-profile.php new file mode 100644 index 00000000000..867d5d8a1d3 --- /dev/null +++ b/core/templates/404-profile.php @@ -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; ?> diff --git a/core/templates/profile.php b/core/templates/profile.php new file mode 100644 index 00000000000..84d6eb0e38f --- /dev/null +++ b/core/templates/profile.php @@ -0,0 +1,5 @@ +<div + id="vue-profile" + class="icon-loading" + style="width: 100%;"> +</div> |