diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-01-31 21:57:20 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-01-31 21:57:20 -0800 |
commit | b78172033fe9f03b5e1ffe4d235b9ab4fb23766d (patch) | |
tree | 7dc9a8e74c3cbc89356e6f9d46f7caa1774d0cd4 /template | |
parent | b0442e027771c2cf33b92557a7e73fa4f85849cf (diff) |
Show API URL endpoints in user interface
Diffstat (limited to 'template')
-rw-r--r-- | template/common.go | 2 | ||||
-rw-r--r-- | template/html/integrations.html | 19 | ||||
-rw-r--r-- | template/views.go | 23 |
3 files changed, 39 insertions, 5 deletions
diff --git a/template/common.go b/template/common.go index 798f8ff..2d28407 100644 --- a/template/common.go +++ b/template/common.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-01-18 20:15:20.47432327 -0800 PST m=+0.053802055 +// 2018-01-31 21:53:31.216689995 -0800 PST m=+0.040862073 package template diff --git a/template/html/integrations.html b/template/html/integrations.html index 5005d68..8c597ee 100644 --- a/template/html/integrations.html +++ b/template/html/integrations.html @@ -39,6 +39,8 @@ <label for="form-fever-password">{{ t "Fever Password" }}</label> <input type="password" name="fever_password" id="form-fever-password" value="{{ .form.FeverPassword }}"> + + <p>{{ t "Fever API endpoint:" }} <strong>{{ baseURL }}{{ route "feverEndpoint" }}</strong></p> </div> <h3>Pinboard</h3> @@ -98,8 +100,23 @@ </div> </form> +<h3>{{ t "Miniflux API" }}</h3> +<div class="panel"> + <ul> + <li> + {{ t "API Endpoint" }} = <strong>{{ baseURL }}/v1/</strong> + </li> + <li> + {{ t "Username" }} = <strong>{{ .user.Username }}</strong> + </li> + <li> + {{ t "Password" }} = <strong>{{ t "Your account password" }}</strong> + </li> + </ul> +</div> + +<h3>{{ t "Bookmarklet" }}</h3> <div class="panel"> - <h3>{{ t "Bookmarklet" }}</h3> <p>{{ t "This special link allows you to subscribe to a website directly by using a bookmark in your web browser." }}</p> <div class="bookmarklet"> diff --git a/template/views.go b/template/views.go index 76d05a4..1409c0c 100644 --- a/template/views.go +++ b/template/views.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-01-18 20:15:20.459420484 -0800 PST m=+0.038899269 +// 2018-01-31 21:53:31.195099265 -0800 PST m=+0.019271343 package template @@ -808,6 +808,8 @@ var templateViewsMap = map[string]string{ <label for="form-fever-password">{{ t "Fever Password" }}</label> <input type="password" name="fever_password" id="form-fever-password" value="{{ .form.FeverPassword }}"> + + <p>{{ t "Fever API endpoint:" }} <strong>{{ baseURL }}{{ route "feverEndpoint" }}</strong></p> </div> <h3>Pinboard</h3> @@ -867,8 +869,23 @@ var templateViewsMap = map[string]string{ </div> </form> +<h3>{{ t "Miniflux API" }}</h3> +<div class="panel"> + <ul> + <li> + {{ t "API Endpoint" }} = <strong>{{ baseURL }}/v1/</strong> + </li> + <li> + {{ t "Username" }} = <strong>{{ .user.Username }}</strong> + </li> + <li> + {{ t "Password" }} = <strong>{{ t "Your account password" }}</strong> + </li> + </ul> +</div> + +<h3>{{ t "Bookmarklet" }}</h3> <div class="panel"> - <h3>{{ t "Bookmarklet" }}</h3> <p>{{ t "This special link allows you to subscribe to a website directly by using a bookmark in your web browser." }}</p> <div class="bookmarklet"> @@ -1196,7 +1213,7 @@ var templateViewsMapChecksums = map[string]string{ "feeds": "65b0a47c4438810b9d51c60f3f3b2519690e56ff74029e6296c68626b83a470b", "history": "d2476fd727e4f53428b5ed1f3f9423063583337ec8cfe1dd9c931fcb03852a20", "import": "73b5112e20bfd232bf73334544186ea419505936bc237d481517a8622901878f", - "integrations": "3c14d7de904911aad7f3ebec6d1a20b50843287f58125c526e167f429f3d455d", + "integrations": "a677434e9a8be1f80cfbc1d04828dacc7abcec2a22b45c80594d49cc2ba7c0e5", "login": "7d83c3067c02f1f6aafdd8816c7f97a4eb5a5a4bdaaaa4cc1e2fbb9c17ea65e8", "sessions": "9a3609c52b071a280b85fd886f15d4b91c76bb0ab93a99ad132c695a216ac5cf", "settings": "ea2505b9d0a6d6bb594dba87a92079de19baa6d494f0651693a7685489fb7de9", |