aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/feed
diff options
context:
space:
mode:
authorGravatar Julien-Pierre Avérous <github@sourcemac.com> 2020-02-13 19:22:35 +0200
committerGravatar GitHub <noreply@github.com> 2020-02-13 18:22:35 +0100
commitd30ac40772ec1b4706922afd8acab8448af39a9e (patch)
tree6b7cec8455a542875959a09f7bdcc7a2af285fa1 /app/views/helpers/feed
parent4ddd1821bb0fc1186937551d59100294b8833727 (diff)
Enhance content path feature (#2778)
- Add a maintenance section to be able to clear cache and force reload a feed. - Add an icon next to path field to show a pop-up with the result of the content path. Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> Co-authored-by: Marien Fressinaud <dev@marienfressinaud.fr>
Diffstat (limited to 'app/views/helpers/feed')
-rw-r--r--app/views/helpers/feed/update.phtml21
1 files changed, 20 insertions, 1 deletions
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml
index 4bc9d62a8..0a3852e22 100644
--- a/app/views/helpers/feed/update.phtml
+++ b/app/views/helpers/feed/update.phtml
@@ -274,7 +274,10 @@
<div class="form-group">
<label class="group-name" for="path_entries"><?= _t('sub.feed.css_path') ?></label>
<div class="group-controls">
- <input type="text" name="path_entries" id="path_entries" class="extend" value="<?= $this->feed->pathEntries() ?>" placeholder="<?= _t('gen.short.blank_to_disable') ?>" />
+ <div class="stick">
+ <input type="text" name="path_entries" id="path_entries" class="extend" value="<?= $this->feed->pathEntries() ?>" placeholder="<?= _t('gen.short.blank_to_disable') ?>" />
+ <a id="popup-preview-selector" class="btn" href="<?= _url('feed', 'contentSelectorPreview', 'id', $this->feed->id(), 'selector', 'selector-token') ?>"><?= _i('look') ?></a>
+ </div>
<?= _i('help') ?> <?= _t('sub.feed.css_help') ?>
</div>
</div>
@@ -354,5 +357,21 @@
<button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
</div>
</div>
+
+ <legend><?= _t('sub.feed.maintenance.title') ?></legend>
+ <div class="form-group">
+ <div class="group-controls">
+ <a class="btn btn-important" href="<?= _url('feed', 'clearCache', 'id', $this->feed->id()) ?>">
+ <?= _t('sub.feed.maintenance.clear_cache') ?>
+ </a>
+ <?= _i('help') ?> <?= _t('sub.feed.maintenance.clear_cache_help') ?>
+ </div>
+ <div class="group-controls">
+ <a class="btn btn-important" href="<?= _url('feed', 'reload', 'id', $this->feed->id()) ?>">
+ <?= _t('sub.feed.maintenance.reload_articles') ?>
+ </a>
+ <?= _i('help') ?> <?= _t('sub.feed.maintenance.reload_articles_help') ?>
+ </div>
+ </div>
</form>
</div>