Add links to scraper/rewrite/filtering docs when editing feeds
This commit is contained in:
parent
4b56c84a8c
commit
6e402f60dc
3 changed files with 77 additions and 11 deletions
|
@ -55,16 +55,47 @@
|
|||
-->
|
||||
<input type="text" name="feed_password" id="form-feed-password" value="{{ .form.Password }}" spellcheck="false">
|
||||
|
||||
<label for="form-scraper-rules">{{ t "form.feed.label.scraper_rules" }}</label>
|
||||
<div class="rules-entry">
|
||||
<label for="form-scraper-rules">
|
||||
{{ t "form.feed.label.scraper_rules" }}
|
||||
</label>
|
||||
|
||||
<a href="https://miniflux.app/docs/rules.html#scraper-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<input type="text" name="scraper_rules" id="form-scraper-rules" value="{{ .form.ScraperRules }}" spellcheck="false">
|
||||
|
||||
<label for="form-rewrite-rules">{{ t "form.feed.label.rewrite_rules" }}</label>
|
||||
<div class="rules-entry">
|
||||
<label for="form-rewrite-rules">
|
||||
{{ t "form.feed.label.rewrite_rules" }}
|
||||
</label>
|
||||
|
||||
<a href="https://miniflux.app/docs/rules.html#rewrite-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<input type="text" name="rewrite_rules" id="form-rewrite-rules" value="{{ .form.RewriteRules }}" spellcheck="false">
|
||||
|
||||
<label for="form-blocklist-rules">{{ t "form.feed.label.blocklist_rules" }}</label>
|
||||
<div class="rules-entry">
|
||||
<label for="form-blocklist-rules">
|
||||
{{ t "form.feed.label.blocklist_rules" }}
|
||||
</label>
|
||||
|
||||
<a href=" https://miniflux.app/docs/rules.html#filtering-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<input type="text" name="blocklist_rules" id="form-blocklist-rules" value="{{ .form.BlocklistRules }}" spellcheck="false">
|
||||
|
||||
<label for="form-keeplist-rules">{{ t "form.feed.label.keeplist_rules" }}</label>
|
||||
<div class="rules-entry">
|
||||
<label for="form-keeplist-rules">
|
||||
{{ t "form.feed.label.keeplist_rules" }}
|
||||
</label>
|
||||
|
||||
<a href=" https://miniflux.app/docs/rules.html#filtering-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<input type="text" name="keeplist_rules" id="form-keeplist-rules" value="{{ .form.KeeplistRules }}" spellcheck="false">
|
||||
</div>
|
||||
</details>
|
||||
|
|
|
@ -68,16 +68,47 @@
|
|||
<label for="form-cookie">{{ t "form.feed.label.cookie" }}</label>
|
||||
<input type="text" name="cookie" id="form-cookie" value="{{ .form.Cookie }}" spellcheck="false">
|
||||
|
||||
<label for="form-scraper-rules">{{ t "form.feed.label.scraper_rules" }}</label>
|
||||
<div class="rules-entry">
|
||||
<label for="form-scraper-rules">
|
||||
{{ t "form.feed.label.scraper_rules" }}
|
||||
</label>
|
||||
|
||||
<a href="https://miniflux.app/docs/rules.html#scraper-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<input type="text" name="scraper_rules" id="form-scraper-rules" value="{{ .form.ScraperRules }}" spellcheck="false">
|
||||
|
||||
<label for="form-rewrite-rules">{{ t "form.feed.label.rewrite_rules" }}</label>
|
||||
<div class="rules-entry">
|
||||
<label for="form-rewrite-rules">
|
||||
{{ t "form.feed.label.rewrite_rules" }}
|
||||
</label>
|
||||
|
||||
<a href="https://miniflux.app/docs/rules.html#rewrite-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<input type="text" name="rewrite_rules" id="form-rewrite-rules" value="{{ .form.RewriteRules }}" spellcheck="false">
|
||||
|
||||
<label for="form-blocklist-rules">{{ t "form.feed.label.blocklist_rules" }}</label>
|
||||
<div class="rules-entry">
|
||||
<label for="form-blocklist-rules">
|
||||
{{ t "form.feed.label.blocklist_rules" }}
|
||||
</label>
|
||||
|
||||
<a href=" https://miniflux.app/docs/rules.html#filtering-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<input type="text" name="blocklist_rules" id="form-blocklist-rules" value="{{ .form.BlocklistRules }}" spellcheck="false">
|
||||
|
||||
<label for="form-keeplist-rules">{{ t "form.feed.label.keeplist_rules" }}</label>
|
||||
<div class="rules-entry">
|
||||
<label for="form-keeplist-rules">
|
||||
{{ t "form.feed.label.keeplist_rules" }}
|
||||
</label>
|
||||
|
||||
<a href=" https://miniflux.app/docs/rules.html#filtering-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<input type="text" name="keeplist_rules" id="form-keeplist-rules" value="{{ .form.KeeplistRules }}" spellcheck="false">
|
||||
|
||||
<label><input type="checkbox" name="crawler" value="1" {{ if .form.Crawler }}checked{{ end }}> {{ t "form.feed.label.crawler" }}</label>
|
||||
|
|
|
@ -1064,3 +1064,7 @@ details.entry-enclosures {
|
|||
text-decoration: none;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.rules-entry {
|
||||
display: flex;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue