2018-09-22 03:53:29 +02:00
|
|
|
{{ define "title"}}{{ t "page.add_feed.title" }}{{ end }}
|
2017-11-20 06:10:04 +01:00
|
|
|
|
2024-01-27 09:25:55 +01:00
|
|
|
{{ define "page_header"}}
|
|
|
|
<section class="page-header" aria-labelledby="page-header-title">
|
2024-01-25 07:22:18 +01:00
|
|
|
<h1 id="page-header-title">{{ t "page.add_feed.title" }}</h1>
|
2020-01-02 22:03:34 +01:00
|
|
|
{{ template "feed_menu" }}
|
2024-01-27 09:25:55 +01:00
|
|
|
</section>
|
2024-01-25 07:22:18 +01:00
|
|
|
{{ end }}
|
2017-11-20 06:10:04 +01:00
|
|
|
|
2024-01-25 07:22:18 +01:00
|
|
|
{{ define "content"}}
|
2017-11-20 06:10:04 +01:00
|
|
|
<form action="{{ route "chooseSubscription" }}" method="POST">
|
|
|
|
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
2018-06-20 07:58:29 +02:00
|
|
|
<input type="hidden" name="category_id" value="{{ .form.CategoryID }}">
|
2018-09-20 03:19:24 +02:00
|
|
|
<input type="hidden" name="user_agent" value="{{ .form.UserAgent }}">
|
2021-03-23 04:27:58 +01:00
|
|
|
<input type="hidden" name="cookie" value="{{ .form.Cookie }}">
|
2018-07-01 03:05:51 +02:00
|
|
|
<input type="hidden" name="feed_username" value="{{ .form.Username }}">
|
|
|
|
<input type="hidden" name="feed_password" value="{{ .form.Password }}">
|
2019-11-29 20:17:14 +01:00
|
|
|
<input type="hidden" name="scraper_rules" value="{{ .form.ScraperRules }}">
|
|
|
|
<input type="hidden" name="rewrite_rules" value="{{ .form.RewriteRules }}">
|
2021-04-26 06:06:39 +02:00
|
|
|
<input type="hidden" name="blocklist_rules" value="{{ .form.BlocklistRules }}">
|
|
|
|
<input type="hidden" name="keeplist_rules" value="{{ .form.KeeplistRules }}">
|
2022-07-12 06:12:26 +02:00
|
|
|
<input type="hidden" name="urlrewrite_rules" value="{{ .form.UrlRewriteRules }}">
|
2020-09-10 08:28:54 +02:00
|
|
|
{{ if .form.FetchViaProxy }}
|
|
|
|
<input type="hidden" name="fetch_via_proxy" value="1">
|
|
|
|
{{ end }}
|
2018-06-20 07:58:29 +02:00
|
|
|
{{ if .form.Crawler }}
|
|
|
|
<input type="hidden" name="crawler" value="1">
|
|
|
|
{{ end }}
|
2021-02-21 22:42:49 +01:00
|
|
|
{{ if .form.AllowSelfSignedCertificates }}
|
|
|
|
<input type="hidden" name="allow_self_signed_certificates" value="1">
|
|
|
|
{{ end }}
|
2024-02-25 07:08:23 +01:00
|
|
|
{{ if .form.DisableHTTP2 }}
|
|
|
|
<input type="hidden" name="disable_http2" value="1">
|
|
|
|
{{ end }}
|
2017-11-20 06:10:04 +01:00
|
|
|
|
2018-09-22 03:53:29 +02:00
|
|
|
<h3>{{ t "page.add_feed.choose_feed" }}</h3>
|
2017-11-20 06:10:04 +01:00
|
|
|
|
|
|
|
{{ range .subscriptions }}
|
|
|
|
<div class="radio-group">
|
2020-01-02 20:06:57 +01:00
|
|
|
<label title="{{ .URL | safeURL }}"><input type="radio" name="url" value="{{ .URL | safeURL }}"> {{ .Title }}</label> ({{ .Type }})
|
|
|
|
<small title="Type = {{ .Type }}"><a href="{{ .URL | safeURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .URL | safeURL }}</a></small>
|
2017-11-20 06:10:04 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div class="buttons">
|
2018-09-22 03:53:29 +02:00
|
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.loading" }}">{{ t "action.subscribe" }}</button>
|
2017-11-20 06:10:04 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|