aboutsummaryrefslogtreecommitdiff
path: root/app/views/user
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-12-04 22:41:08 +0100
committerGravatar GitHub <noreply@github.com> 2024-12-04 22:41:08 +0100
commit79651b942de86e9d181ecf92cbbf12ad87b58cf2 (patch)
tree9f5f7bd2fe649d066271f593f0f1aba98b420400 /app/views/user
parentb6f3bbe18525292ae38831344a4bd5e1b361b4e0 (diff)
improve api management (#7048)
* ... and sharing user queries by link (not all languages) * Profile page: API mgm: better headline, better help text * i18n * i18n: " and sharing user queries" * i18n: link to documentation + apps list * Update app/i18n/it/conf.php * Update app/i18n/it/conf.php * Update app/i18n/it/conf.php * Update app/i18n/it/conf.php * Update app/i18n/it/conf.php * Update app/i18n/it/conf.php * Update app/i18n/it/conf.php * Update app/i18n/it/admin.php Co-authored-by: UserRoot-Luca <55756898+UserRoot-Luca@users.noreply.github.com> * Update app/i18n/it/conf.php * Update app/i18n/fr/admin.php * i18n * French doc cf. English * Update app/i18n/it/conf.php Co-authored-by: UserRoot-Luca <55756898+UserRoot-Luca@users.noreply.github.com> * Update conf.php --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> Co-authored-by: UserRoot-Luca <55756898+UserRoot-Luca@users.noreply.github.com>
Diffstat (limited to 'app/views/user')
-rw-r--r--app/views/user/profile.phtml14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtml
index 1c410334d..f0ae7b2fb 100644
--- a/app/views/user/profile.phtml
+++ b/app/views/user/profile.phtml
@@ -75,8 +75,9 @@
</div>
</form>
+
+ <h2><?= _t('conf.profile.api') ?></h2>
<?php if (FreshRSS_Context::systemConf()->api_enabled) { ?>
- <h2><?= _t('conf.profile.api') ?></h2>
<form method="post" action="<?= _url('api', 'updatePassword') ?>">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
@@ -88,7 +89,8 @@
pattern=".{7,}" <?= cryptAvailable() ? '' : 'disabled="disabled" ' ?>/>
<button type="button" class="btn toggle-password" data-toggle="apiPasswordPlain"><?= _i('key') ?></button>
</div>
- <p class="help"><?= _i('help') ?> <kbd><a href="../api/"><?= Minz_Url::display('/api/', 'html', true) ?></a></kbd></p>
+ <p class="help"><?= _i('help') ?> <?= _t('conf.profile.api.check_link', Minz_Url::display('/api/', 'html', true)) ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('conf.profile.api.documentation_link') ?></p>
</div>
</div>
@@ -98,6 +100,14 @@
</div>
</div>
</form>
+ <?php } else { ?>
+ <div class="form-group">
+ <label class="group-name"></label>
+ <div class="group-controls">
+ <?= _t('conf.profile.api.disabled') ?>
+ <p class="help"><?= _i('help') ?> <?= _t('conf.profile.api.help') ?></p>
+ </div>
+ </div>
<?php } ?>
<?php if (!FreshRSS_Auth::hasAccess('admin')) { ?>