aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-05-21 12:19:56 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-05-21 19:58:36 -0400
commitb270159aae97359afe02f3c4843fa0f4e9a1a1b6 (patch)
tree290eef118ce6ccab49471d3673bb7d51b24bb4c2 /template/html
parent44decae557a6f78eda57b8f407d35b10233538e4 (diff)
Offer the possibility to set Pocket Consumer Key as environment variable
Diffstat (limited to 'template/html')
-rw-r--r--template/html/integrations.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/template/html/integrations.html b/template/html/integrations.html
index 4316656..5eef264 100644
--- a/template/html/integrations.html
+++ b/template/html/integrations.html
@@ -79,8 +79,10 @@
<input type="checkbox" name="pocket_enabled" value="1" {{ if .form.PocketEnabled }}checked{{ end }}> {{ t "Save articles to Pocket" }}
</label>
- <label for="form-pocket-consumer-key">{{ t "Pocket Consumer Key" }}</label>
- <input type="text" name="pocket_consumer_key" id="form-pocket-consumer-key" value="{{ .form.PocketConsumerKey }}">
+ {{ if not .hasPocketConsumerKeyConfigured }}
+ <label for="form-pocket-consumer-key">{{ t "Pocket Consumer Key" }}</label>
+ <input type="text" name="pocket_consumer_key" id="form-pocket-consumer-key" value="{{ .form.PocketConsumerKey }}">
+ {{ end }}
<label for="form-pocket-access-token">{{ t "Pocket Access Token" }}</label>
<input type="password" name="pocket_access_token" id="form-pocket-access-token" value="{{ .form.PocketAccessToken }}">