diff options
| author | 2023-03-12 23:18:11 +0100 | |
|---|---|---|
| committer | 2023-03-12 23:18:11 +0100 | |
| commit | ce5572d7dd13fce491257cee0f1f1ca69c499a4a (patch) | |
| tree | f00853f8a3d0fbd70fdb0fe618533fa7c73ba6c7 /app/views | |
| parent | b22ea9d3d71272acdad9413344dd0bc77d985d46 (diff) | |
Improve about page (#5192)
* add link to documentation
* i18n for documentation
* add target="_blank" for website link
* show environment, if it is not 'production'
* just for admins
* fix
* Update app/i18n/fr/index.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* Update app/i18n/en/index.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* Update app/views/index/about.phtml
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/index/about.phtml | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/app/views/index/about.phtml b/app/views/index/about.phtml index e25e9a119..138791de1 100644 --- a/app/views/index/about.phtml +++ b/app/views/index/about.phtml @@ -16,7 +16,10 @@ <p><?= _t('index.about.freshrss_description') ?></p> <h2><?= _t('index.about.project_website') ?></h2> - <a href="<?= FRESHRSS_WEBSITE ?>"><?= FRESHRSS_WEBSITE ?></a> + <a href="<?= FRESHRSS_WEBSITE ?>" target="_blank"><?= FRESHRSS_WEBSITE ?></a> + + <h2><?= _t('index.about.documentation') ?></h2> + <a href="<?= FRESHRSS_WIKI ?>" target="_blank"><?= FRESHRSS_WIKI ?></a> <h2><?= _t('index.about.bugs_reports') ?></h2> <?= _t('index.about.github') ?> @@ -24,10 +27,20 @@ <h2><?= _t('index.about.license') ?></h2> <?= _t('index.about.agpl3') ?> - <?php if (FreshRSS_Auth::hasAccess()): ?> - <h2><?= _t('index.about.version') ?></h2> - <?= FRESHRSS_VERSION ?> - <?php endif; ?> + <?php + if (FreshRSS_Auth::hasAccess()) { ?> + <h2><?= _t('index.about.version') ?></h2> + <?= FRESHRSS_VERSION ?> + + <?php + $env = FreshRSS_Context::$system_conf->environment; + if ($env !== 'production' && FreshRSS_Context::$user_conf->is_admin) { ?> + <h2>data/config.php</h2> + <code>'environment' => '<?= $env; ?>'</code><br /> + <?php + } + } + ?> <h2><?= _t('index.about.credits') ?></h2> <p><?= _t('index.about.credits_content') ?></p> |
