diff options
Diffstat (limited to 'app/views/user/profile.phtml')
| -rw-r--r-- | app/views/user/profile.phtml | 14 |
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')) { ?> |
