aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Tommaso Ferrari <raspaccio@gmail.com> 2025-10-22 12:28:33 -0700
committerGravatar GitHub <noreply@github.com> 2025-10-22 21:28:33 +0200
commit581b81006af157d0fa12b8d1e2604c637234f778 (patch)
treea75de00520a304e27296e4c6b5b6bf2116f1ae69 /app/views
parent1282d3a2709064cb847b8757409a7153449faa9d (diff)
Add option to apply filter actions to existing articles (#7959)
* Add option to apply filter actions to existing articles * make fix-all * Fixes * Another approach with preview New approach: https://github.com/FreshRSS/FreshRSS/pull/7959/commits/20479475c90ac954b991b3703c3cc76c16aa2d5c <img width="666" height="202" alt="image" src="https://github.com/user-attachments/assets/bb68ede4-60c8-4e0c-9317-c5ed7a6ad7df" /> Additional improvements: * Also implemented at category level, and at global level * Also implemented for favourites at global level Shortcomings: * Does not always work reliably with advanced regex, since the DB's flavour is not necessarily the same than PHP's Related: https://github.com/FreshRSS/FreshRSS/pull/8141 * make fix-all --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/reading.phtml10
-rw-r--r--app/views/helpers/category/update.phtml5
-rw-r--r--app/views/helpers/feed/update.phtml5
3 files changed, 20 insertions, 0 deletions
diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml
index e9a21839c..3b92a9e4f 100644
--- a/app/views/configure/reading.phtml
+++ b/app/views/configure/reading.phtml
@@ -353,6 +353,11 @@
}
?></textarea>
<p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
+ <p>
+ <button class="btn" formaction="<?= _url('configure', 'viewFilter', 'filters_name', 'filteractions_read') ?>" formtarget="_blank">
+ <?= _t('sub.feed.filteractions.view_filter') ?>
+ </button>
+ </p>
</div>
</div>
@@ -365,6 +370,11 @@
}
?></textarea>
<p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
+ <p>
+ <button class="btn" formaction="<?= _url('configure', 'viewFilter', 'filters_name', 'filteractions_star') ?>" formtarget="_blank">
+ <?= _t('sub.feed.filteractions.view_filter') ?>
+ </button>
+ </p>
</div>
</div>
diff --git a/app/views/helpers/category/update.phtml b/app/views/helpers/category/update.phtml
index 5e5fb4f10..231f86ebd 100644
--- a/app/views/helpers/category/update.phtml
+++ b/app/views/helpers/category/update.phtml
@@ -100,6 +100,11 @@
}
?></textarea>
<p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
+ <p>
+ <button class="btn" formaction="<?= _url('category', 'viewFilter', 'id', $this->category->id()); ?>" formtarget="_blank">
+ <?= _t('sub.feed.filteractions.view_filter') ?>
+ </button>
+ </p>
</div>
</div>
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml
index c5dae8460..301cb1ced 100644
--- a/app/views/helpers/feed/update.phtml
+++ b/app/views/helpers/feed/update.phtml
@@ -308,6 +308,11 @@
}
?></textarea>
<p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
+ <p>
+ <button class="btn" formaction="<?= _url('subscription', 'viewFilter', 'id', $this->feed->id()); ?>" formtarget="_blank">
+ <?= _t('sub.feed.filteractions.view_filter') ?>
+ </button>
+ </p>
</div>
</div>