diff options
| author | 2023-03-21 18:47:07 +0100 | |
|---|---|---|
| committer | 2023-03-21 18:47:07 +0100 | |
| commit | e679d3df0e55530c056d701b4773ff7e74f5c82c (patch) | |
| tree | 38c69b91a41c05b3f5893b90e7f71077db95b4c0 /app/views/index | |
| parent | 34f62896ac729131dee25997307521bf259c5efc (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')
| -rw-r--r-- | app/views/index/about.phtml | 2 | ||||
| -rw-r--r-- | app/views/index/tos.phtml | 33 |
2 files changed, 25 insertions, 10 deletions
diff --git a/app/views/index/about.phtml b/app/views/index/about.phtml index 138791de1..41c0b1c72 100644 --- a/app/views/index/about.phtml +++ b/app/views/index/about.phtml @@ -5,7 +5,7 @@ } ?> -<main class="post content"> +<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> 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> |
