diff options
| author | 2024-10-20 14:51:49 -0400 | |
|---|---|---|
| committer | 2024-10-20 20:51:49 +0200 | |
| commit | ad2c6e6fbf3658f08295fb437a0f97e10498eb11 (patch) | |
| tree | 2207fef4ee921450ac3b25d217711fe16173b6a0 /app/views/configure | |
| parent | a766ebfb68298cfd2a268d87443c5e2586e93243 (diff) | |
Add privacy settings on extension list retrieval (#4603)
* Add privacy settings on extension list retrieval
There is a new privacy page to handle all configuration related to privacy. At
the moment, only privacy related to extensions can be configured.
The new settings allow to change the location of the extension list file and to
choose if the selected file is cached for a day or retrieved for each request.
Fix #4570
* Update code to pass PHPStan
* make fix-all
---------
Co-authored-by: maTh <math-home@web.de>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/configure')
| -rw-r--r-- | app/views/configure/privacy.phtml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/views/configure/privacy.phtml b/app/views/configure/privacy.phtml new file mode 100644 index 000000000..d64358382 --- /dev/null +++ b/app/views/configure/privacy.phtml @@ -0,0 +1,32 @@ +<?php + /** @var FreshRSS_View $this */ + $this->partial('aside_configure'); +?> + +<main class="post"> + <div class="link-back-wrapper"> + <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a> + </div> + + <h1><?= _t('conf.privacy') ?></h1> + + <form method="post" action="<?= _url('configure', 'privacy') ?>"> + <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> + + <div class="form-group"> + <label class="group-name" for="retrieve_extension_list"><?= _t('conf.privacy.retrieve_extension_list') ?></label> + <div class="group-controls"> + <input type="checkbox" id="retrieve_extension_list" name="retrieve_extension_list" value="1"<?= + FreshRSS_Context::userConf()->retrieve_extension_list !== false ? ' checked="checked"' : '' ?> + data-leave-validation="<?= FreshRSS_Context::userConf()->retrieve_extension_list !== false ? 1 : 0 ?>"/> + </div> + </div> + + <div class="form-group form-actions"> + <div class="group-controls"> + <button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button> + <button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button> + </div> + </div> + </form> +</main> |
