Add links to scraper/rewrite/filtering docs when editing feeds

This commit is contained in:
Thiago Perrotta 2022-01-22 22:55:02 -05:00 committed by Frédéric Guillot
parent 4b56c84a8c
commit 6e402f60dc
3 changed files with 77 additions and 11 deletions

View file

@ -55,16 +55,47 @@
--> -->
<input type="text" name="feed_password" id="form-feed-password" value="{{ .form.Password }}" spellcheck="false"> <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>
&nbsp;
<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"> <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>
&nbsp;
<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"> <input type="text" name="rewrite_rules" id="form-rewrite-rules" value="{{ .form.RewriteRules }}" spellcheck="false">
<div class="rules-entry">
<label for="form-blocklist-rules">{{ t "form.feed.label.blocklist_rules" }}</label> <label for="form-blocklist-rules">
{{ t "form.feed.label.blocklist_rules" }}
</label>
&nbsp;
<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"> <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>
&nbsp;
<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"> <input type="text" name="keeplist_rules" id="form-keeplist-rules" value="{{ .form.KeeplistRules }}" spellcheck="false">
</div> </div>
</details> </details>

View file

@ -68,16 +68,47 @@
<label for="form-cookie">{{ t "form.feed.label.cookie" }}</label> <label for="form-cookie">{{ t "form.feed.label.cookie" }}</label>
<input type="text" name="cookie" id="form-cookie" value="{{ .form.Cookie }}" spellcheck="false"> <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>
&nbsp;
<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"> <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>
&nbsp;
<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"> <input type="text" name="rewrite_rules" id="form-rewrite-rules" value="{{ .form.RewriteRules }}" spellcheck="false">
<div class="rules-entry">
<label for="form-blocklist-rules">{{ t "form.feed.label.blocklist_rules" }}</label> <label for="form-blocklist-rules">
{{ t "form.feed.label.blocklist_rules" }}
</label>
&nbsp;
<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"> <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>
&nbsp;
<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"> <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> <label><input type="checkbox" name="crawler" value="1" {{ if .form.Crawler }}checked{{ end }}> {{ t "form.feed.label.crawler" }}</label>

View file

@ -1064,3 +1064,7 @@ details.entry-enclosures {
text-decoration: none; text-decoration: none;
font-size: 1.2em; font-size: 1.2em;
} }
.rules-entry {
display: flex;
}