diff options
Diffstat (limited to 'template/html')
-rw-r--r-- | template/html/add_subscription.html | 3 | ||||
-rw-r--r-- | template/html/choose_subscription.html | 1 | ||||
-rw-r--r-- | template/html/edit_feed.html | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/template/html/add_subscription.html b/template/html/add_subscription.html index 5b46549..7ccbc20 100644 --- a/template/html/add_subscription.html +++ b/template/html/add_subscription.html @@ -41,6 +41,9 @@ <label><input type="checkbox" name="crawler" value="1" {{ if .form.Crawler }}checked{{ end }}> {{ t "Fetch original content" }}</label> + <label for="form-user-agent">{{ t "User-Agent" }}</label> + <input type="text" name="user_agent" id="form-user-agent" placeholder="{{ .defaultUserAgent }}" value="{{ .form.UserAgent }}"> + <label for="form-feed-username">{{ t "Feed Username" }}</label> <input type="text" name="feed_username" id="form-feed-username" value="{{ .form.Username }}"> diff --git a/template/html/choose_subscription.html b/template/html/choose_subscription.html index ad1c38a..2b053a1 100644 --- a/template/html/choose_subscription.html +++ b/template/html/choose_subscription.html @@ -19,6 +19,7 @@ <form action="{{ route "chooseSubscription" }}" method="POST"> <input type="hidden" name="csrf" value="{{ .csrf }}"> <input type="hidden" name="category_id" value="{{ .form.CategoryID }}"> + <input type="hidden" name="user_agent" value="{{ .form.UserAgent }}"> <input type="hidden" name="feed_username" value="{{ .form.Username }}"> <input type="hidden" name="feed_password" value="{{ .form.Password }}"> {{ if .form.Crawler }} diff --git a/template/html/edit_feed.html b/template/html/edit_feed.html index 9c57590..0e0017c 100644 --- a/template/html/edit_feed.html +++ b/template/html/edit_feed.html @@ -58,6 +58,9 @@ --> <input type="text" name="feed_password" id="form-feed-password" value="{{ .form.Password }}"> + <label for="form-user-agent">{{ t "User-Agent" }}</label> + <input type="text" name="user_agent" id="form-user-agent" placeholder="{{ .defaultUserAgent }}" value="{{ .form.UserAgent }}"> + <label for="form-scraper-rules">{{ t "Scraper Rules" }}</label> <input type="text" name="scraper_rules" id="form-scraper-rules" value="{{ .form.ScraperRules }}"> |