2018-09-22 03:53:29 +02:00
{{ define "title"}}{{ t "page.edit_feed.title" .feed.Title }}{{ end }}
2017-11-20 06:10:04 +01:00
{{ define "content"}}
< section class = "page-header" >
2020-06-25 06:46:37 +02:00
< h1 dir = "auto" > {{ .feed.Title }}< / h1 >
2017-11-20 06:10:04 +01:00
< ul >
< li >
2022-01-18 06:00:32 +01:00
< a href = "{{ route " feeds " } } " > {{ icon "feeds" }}{{ t "menu.feeds" }}< / a >
2017-11-20 06:10:04 +01:00
< / li >
< li >
2022-01-18 06:00:32 +01:00
< a href = "{{ route " feedEntries " " feedID " . feed . ID } } " > {{ icon "entries" }}{{ t "menu.feed_entries" }}< / a >
2017-11-20 06:10:04 +01:00
< / li >
< li >
2022-01-18 06:00:32 +01:00
< a href = "{{ route " refreshFeed " " feedID " . feed . ID } } " > {{ icon "refresh" }}{{ t "menu.refresh_feed" }}< / a >
2017-11-20 06:10:04 +01:00
< / li >
< / ul >
< / section >
{{ if not .categories }}
2018-09-22 03:53:29 +02:00
< p class = "alert alert-error" > {{ t "page.add_feed.no_category" }}< / p >
2017-11-20 06:10:04 +01:00
{{ else }}
{{ if ne .feed.ParsingErrorCount 0 }}
< div class = "alert alert-error" >
2018-09-22 03:53:29 +02:00
< h3 > {{ t "page.edit_feed.last_parsing_error" }}< / h3 >
2018-01-05 03:32:36 +01:00
< p > {{ t .feed.ParsingErrorMsg }}< / p >
2017-11-20 06:10:04 +01:00
< / div >
{{ end }}
< form action = "{{ route " updateFeed " " feedID " . feed . ID } } " method = "post" autocomplete = "off" >
< input type = "hidden" name = "csrf" value = "{{ .csrf }}" >
{{ if .errorMessage }}
< div class = "alert alert-error" > {{ t .errorMessage }}< / div >
{{ end }}
2022-01-25 06:03:32 +01:00
< label for = "form-category" > {{ t "form.feed.label.category" }}< / label >
< select id = "form-category" name = "category_id" autofocus >
{{ range .categories }}
< option value = "{{ .ID }}" { { if eq . ID $ . form . CategoryID } } selected = "selected" { { end } } > {{ .Title }}< / option >
{{ end }}
< / select >
2017-11-20 06:10:04 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-title" > {{ t "form.feed.label.title" }}< / label >
2022-01-25 06:03:32 +01:00
< input type = "text" name = "title" id = "form-title" value = "{{ .form.Title }}" spellcheck = "false" required >
2017-11-20 06:10:04 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-site-url" > {{ t "form.feed.label.site_url" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "url" name = "site_url" id = "form-site-url" placeholder = "https://domain.tld/" value = "{{ .form.SiteURL }}" spellcheck = "false" required >
2017-11-20 06:10:04 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-feed-url" > {{ t "form.feed.label.feed_url" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "url" name = "feed_url" id = "form-feed-url" placeholder = "https://domain.tld/" value = "{{ .form.FeedURL }}" spellcheck = "false" required >
2017-11-20 06:10:04 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-feed-username" > {{ t "form.feed.label.feed_username" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "feed_username" id = "form-feed-username" value = "{{ .form.Username }}" spellcheck = "false" >
2018-06-20 07:58:29 +02:00
2018-09-22 03:53:29 +02:00
< label for = "form-feed-password" > {{ t "form.feed.label.feed_password" }}< / label >
2018-07-09 03:21:56 +02:00
<!--
We are using the type "text" otherwise Firefox always autocomplete this password:
- autocomplete="off" or autocomplete="new-password" doesn't change anything
- Changing the input ID doesn't change anything
- Using a different input name doesn't change anything
-->
2021-01-05 05:29:12 +01:00
< input type = "text" name = "feed_password" id = "form-feed-password" value = "{{ .form.Password }}" spellcheck = "false" >
2018-06-20 07:58:29 +02:00
2018-09-22 03:53:29 +02:00
< label for = "form-user-agent" > {{ t "form.feed.label.user_agent" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "user_agent" id = "form-user-agent" placeholder = "{{ .defaultUserAgent }}" value = "{{ .form.UserAgent }}" spellcheck = "false" >
2018-09-20 03:19:24 +02:00
2021-03-23 04:27:58 +01:00
< label for = "form-cookie" > {{ t "form.feed.label.cookie" }}< / label >
< input type = "text" name = "cookie" id = "form-cookie" value = "{{ .form.Cookie }}" spellcheck = "false" >
2022-01-23 04:55:02 +01:00
< 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 >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "scraper_rules" id = "form-scraper-rules" value = "{{ .form.ScraperRules }}" spellcheck = "false" >
2017-12-11 05:51:04 +01:00
2022-01-23 04:55:02 +01:00
< 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 >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "rewrite_rules" id = "form-rewrite-rules" value = "{{ .form.RewriteRules }}" spellcheck = "false" >
2022-01-23 04:55:02 +01:00
< 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 >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "blocklist_rules" id = "form-blocklist-rules" value = "{{ .form.BlocklistRules }}" spellcheck = "false" >
2021-03-23 04:27:58 +01:00
2022-01-23 04:55:02 +01:00
< 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 >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "keeplist_rules" id = "form-keeplist-rules" value = "{{ .form.KeeplistRules }}" spellcheck = "false" >
2020-10-16 23:40:56 +02:00
2018-09-22 03:53:29 +02:00
< label > < input type = "checkbox" name = "crawler" value = "1" { { if . form . Crawler } } checked { { end } } > {{ t "form.feed.label.crawler" }}< / label >
2020-06-06 06:50:59 +02:00
< label > < input type = "checkbox" name = "ignore_http_cache" value = "1" { { if . form . IgnoreHTTPCache } } checked { { end } } > {{ t "form.feed.label.ignore_http_cache" }}< / label >
2021-02-21 22:42:49 +01:00
< label > < input type = "checkbox" name = "allow_self_signed_certificates" value = "1" { { if . form . AllowSelfSignedCertificates } } checked { { end } } > {{ t "form.feed.label.allow_self_signed_certificates" }}< / label >
2020-09-10 08:28:54 +02:00
{{ if .hasProxyConfigured }}
< label > < input type = "checkbox" name = "fetch_via_proxy" value = "1" { { if . form . FetchViaProxy } } checked { { end } } > {{ t "form.feed.label.fetch_via_proxy" }}< / label >
{{ end }}
2019-07-27 06:13:06 +02:00
< label > < input type = "checkbox" name = "disabled" value = "1" { { if . form . Disabled } } checked { { end } } > {{ t "form.feed.label.disabled" }}< / label >
2021-08-16 11:23:52 +02:00
{{ if not .form.CategoryHidden }}
< label > < input type = "checkbox" name = "hide_globally" value = "1" { { if . form . HideGlobally } } checked { { end } } > {{ t "form.feed.label.hide_globally" }}< / label >
{{ end }}
2017-12-13 04:19:36 +01:00
2017-11-20 06:10:04 +01:00
< div class = "buttons" >
2018-09-22 03:53:29 +02:00
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button > {{ t "action.or" }} < a href = "{{ route " feeds " } } " > {{ t "action.cancel" }}< / a >
2017-11-20 06:10:04 +01:00
< / div >
< / form >
2017-12-27 05:58:16 +01:00
< div class = "panel" >
< ul >
2018-09-22 03:53:29 +02:00
< li > < strong > {{ t "page.edit_feed.last_check" }} < / strong > < time datetime = "{{ isodate .feed.CheckedAt }}" title = "{{ isodate .feed.CheckedAt }}" > {{ elapsed $.user.Timezone .feed.CheckedAt }}< / time > < / li >
< li > < strong > {{ t "page.edit_feed.etag_header" }} < / strong > {{ if .feed.EtagHeader }}{{ .feed.EtagHeader }}{{ else }}{{ t "page.edit_feed.no_header" }}{{ end }}< / li >
< li > < strong > {{ t "page.edit_feed.last_modified_header" }} < / strong > {{ if .feed.LastModifiedHeader }}{{ .feed.LastModifiedHeader }}{{ else }}{{ t "page.edit_feed.no_header" }}{{ end }}< / li >
2017-12-27 05:58:16 +01:00
< / ul >
< / div >
2018-08-25 21:21:54 +02:00
< div class = "alert alert-error" >
< a href = "#"
data-confirm="true"
2018-10-14 00:43:09 +02:00
data-action="remove-feed"
2018-09-22 03:53:29 +02:00
data-label-question="{{ t "confirm.question" }}"
data-label-yes="{{ t "confirm.yes" }}"
data-label-no="{{ t "confirm.no" }}"
data-label-loading="{{ t "confirm.loading" }}"
2018-08-25 21:21:54 +02:00
data-url="{{ route "removeFeed" "feedID" .feed.ID }}"
2018-09-22 03:53:29 +02:00
data-redirect-url="{{ route "feeds" }}">{{ t "action.remove_feed" }}< / a >
2018-08-25 21:21:54 +02:00
< / div >
2017-11-20 06:10:04 +01:00
{{ end }}
2018-10-14 00:43:09 +02:00
{{ end }}