aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/tos.phtml
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2023-03-21 18:47:07 +0100
committerGravatar GitHub <noreply@github.com> 2023-03-21 18:47:07 +0100
commite679d3df0e55530c056d701b4773ff7e74f5c82c (patch)
tree38c69b91a41c05b3f5893b90e7f71077db95b4c0 /app/views/index/tos.phtml
parent34f62896ac729131dee25997307521bf259c5efc (diff)
Improved: show Terms of Service in config menu (#5215)
* Use constants for path to TOS * improve comments * TOS title moved to template * TOS available via config menu * CSS: improve handling of content of TOS/about * give info about set/unset TOS in system config * fix target * i18n FR * i18n DE
Diffstat (limited to 'app/views/index/tos.phtml')
-rw-r--r--app/views/index/tos.phtml33
1 files changed, 24 insertions, 9 deletions
diff --git a/app/views/index/tos.phtml b/app/views/index/tos.phtml
index 5e7f8ea58..24610ed9f 100644
--- a/app/views/index/tos.phtml
+++ b/app/views/index/tos.phtml
@@ -1,14 +1,29 @@
-<?php /** @var FreshRSS_View $this */ ?>
-<main class="post content">
- <?php if ($this->can_register) { ?>
- <a href="<?= _url('auth', 'register') ?>">
- <?= _t('gen.action.back') ?>
- </a>
+<?php
+ /** @var FreshRSS_View $this */
+ if (FreshRSS_Auth::hasAccess()) {
+ $this->partial('aside_configure');
+ }
+?>
+
+<main class="post content<?= !FreshRSS_Auth::hasAccess() ? ' centered' : ''?>">
+ <?php if (FreshRSS_Auth::hasAccess()) {?>
+ <div class="link-back-wrapper">
+ <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
+ </div>
+ <?php } elseif ($this->can_register) { ?>
+ <div class="link-back-wrapper">
+ <a href="<?= _url('auth', 'register') ?>">
+ <?= _t('gen.action.back') ?>
+ </a>
+ </div>
<?php } else { ?>
- <a href="<?= _url('index', 'index') ?>">
- <?= _t('gen.action.back') ?>
- </a>
+ <div class="link-back-wrapper">
+ <a href="<?= _url('index', 'index') ?>">
+ <?= _t('gen.action.back') ?>
+ </a>
+ </div>
<?php } ?>
+ <h1><?= _t('index.tos.title')?></h1>
<?= $this->terms_of_service ?>
</main>