2017-11-22 04:37:47 +01:00
|
|
|
{{ define "title"}}{{ t "Integrations" }}{{ end }}
|
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
|
|
|
<h1>{{ t "Integrations" }}</h1>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "settings" }}">{{ t "Settings" }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
|
|
|
|
</li>
|
|
|
|
{{ if .user.IsAdmin }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "users" }}">{{ t "Users" }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ route "about" }}">{{ t "About" }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
2017-12-03 04:32:14 +01:00
|
|
|
<form method="post" autocomplete="off" action="{{ route "updateIntegration" }}">
|
|
|
|
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
|
|
|
|
|
|
|
{{ if .errorMessage }}
|
|
|
|
<div class="alert alert-error">{{ t .errorMessage }}</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2017-12-04 02:44:27 +01:00
|
|
|
<h3>Fever</h3>
|
|
|
|
<div class="form-section">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="fever_enabled" value="1" {{ if .form.FeverEnabled }}checked{{ end }}> {{ t "Activate Fever API" }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label for="form-fever-username">{{ t "Fever Username" }}</label>
|
|
|
|
<input type="text" name="fever_username" id="form-fever-username" value="{{ .form.FeverUsername }}">
|
|
|
|
|
|
|
|
<label for="form-fever-password">{{ t "Fever Password" }}</label>
|
|
|
|
<input type="password" name="fever_password" id="form-fever-password" value="{{ .form.FeverPassword }}">
|
2018-02-01 06:57:20 +01:00
|
|
|
|
2018-02-04 00:33:17 +01:00
|
|
|
<p>{{ t "Fever API endpoint:" }} <strong>{{ rootURL }}{{ route "feverEndpoint" }}</strong></p>
|
2017-12-04 02:44:27 +01:00
|
|
|
</div>
|
|
|
|
|
2017-12-03 04:32:14 +01:00
|
|
|
<h3>Pinboard</h3>
|
2017-12-03 06:12:03 +01:00
|
|
|
<div class="form-section">
|
|
|
|
<label>
|
2017-12-04 02:44:27 +01:00
|
|
|
<input type="checkbox" name="pinboard_enabled" value="1" {{ if .form.PinboardEnabled }}checked{{ end }}> {{ t "Save articles to Pinboard" }}
|
2017-12-03 06:12:03 +01:00
|
|
|
</label>
|
2017-12-03 04:32:14 +01:00
|
|
|
|
2017-12-03 06:12:03 +01:00
|
|
|
<label for="form-pinboard-token">{{ t "Pinboard API Token" }}</label>
|
|
|
|
<input type="password" name="pinboard_token" id="form-pinboard-token" value="{{ .form.PinboardToken }}">
|
2017-12-03 04:32:14 +01:00
|
|
|
|
2017-12-03 06:12:03 +01:00
|
|
|
<label for="form-pinboard-tags">{{ t "Pinboard Tags" }}</label>
|
|
|
|
<input type="text" name="pinboard_tags" id="form-pinboard-tags" value="{{ .form.PinboardTags }}">
|
2017-12-03 04:32:14 +01:00
|
|
|
|
2017-12-03 06:12:03 +01:00
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="pinboard_mark_as_unread" value="1" {{ if .form.PinboardMarkAsUnread }}checked{{ end }}> {{ t "Mark bookmark as unread" }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3>Instapaper</h3>
|
|
|
|
<div class="form-section">
|
|
|
|
<label>
|
2017-12-04 02:44:27 +01:00
|
|
|
<input type="checkbox" name="instapaper_enabled" value="1" {{ if .form.InstapaperEnabled }}checked{{ end }}> {{ t "Save articles to Instapaper" }}
|
2017-12-03 06:12:03 +01:00
|
|
|
</label>
|
|
|
|
|
|
|
|
<label for="form-instapaper-username">{{ t "Instapaper Username" }}</label>
|
|
|
|
<input type="text" name="instapaper_username" id="form-instapaper-username" value="{{ .form.InstapaperUsername }}">
|
|
|
|
|
|
|
|
<label for="form-instapaper-password">{{ t "Instapaper Password" }}</label>
|
|
|
|
<input type="password" name="instapaper_password" id="form-instapaper-password" value="{{ .form.InstapaperPassword }}">
|
|
|
|
</div>
|
2017-12-03 04:32:14 +01:00
|
|
|
|
2018-05-21 00:29:14 +02:00
|
|
|
<h3>Pocket</h3>
|
|
|
|
<div class="form-section">
|
|
|
|
<label>
|
|
|
|
<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 }}">
|
|
|
|
|
|
|
|
<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 }}">
|
|
|
|
|
|
|
|
{{ if not .form.PocketAccessToken }}
|
|
|
|
<p><a href="{{ route "pocketAuthorize" }}">{{ t "Connect your Pocket account" }}</a></p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
2017-12-19 05:52:46 +01:00
|
|
|
<h3>Wallabag</h3>
|
|
|
|
<div class="form-section">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="wallabag_enabled" value="1" {{ if .form.WallabagEnabled }}checked{{ end }}> {{ t "Save articles to Wallabag" }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label for="form-wallabag-url">{{ t "Wallabag API Endpoint" }}</label>
|
|
|
|
<input type="url" name="wallabag_url" id="form-wallabag-url" value="{{ .form.WallabagURL }}" placeholder="http://v2.wallabag.org/">
|
|
|
|
|
|
|
|
<label for="form-wallabag-client-id">{{ t "Wallabag Client ID" }}</label>
|
|
|
|
<input type="text" name="wallabag_client_id" id="form-wallabag-client-id" value="{{ .form.WallabagClientID }}">
|
|
|
|
|
|
|
|
<label for="form-wallabag-client-secret">{{ t "Wallabag Client Secret" }}</label>
|
|
|
|
<input type="password" name="wallabag_client_secret" id="form-wallabag-client-secret" value="{{ .form.WallabagClientSecret }}">
|
|
|
|
|
|
|
|
<label for="form-wallabag-username">{{ t "Wallabag Username" }}</label>
|
|
|
|
<input type="text" name="wallabag_username" id="form-wallabag-username" value="{{ .form.WallabagUsername }}">
|
|
|
|
|
|
|
|
<label for="form-wallabag-password">{{ t "Wallabag Password" }}</label>
|
|
|
|
<input type="password" name="wallabag_password" id="form-wallabag-password" value="{{ .form.WallabagPassword }}">
|
|
|
|
</div>
|
2018-05-20 22:31:56 +02:00
|
|
|
|
2018-02-25 20:49:08 +01:00
|
|
|
<h3>Nunux Keeper</h3>
|
|
|
|
<div class="form-section">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="nunux_keeper_enabled" value="1" {{ if .form.NunuxKeeperEnabled }}checked{{ end }}> {{ t "Save articles to Nunux Keeper" }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label for="form-nunux-keeper-url">{{ t "Nunux Keeper API Endpoint" }}</label>
|
|
|
|
<input type="url" name="nunux_keeper_url" id="form-nunux-keeper-url" value="{{ .form.NunuxKeeperURL }}" placeholder="https://api.nunux.org/keeper">
|
|
|
|
|
|
|
|
<label for="form-nunux-keeper-api-key">{{ t "Nunux Keeper API key" }}</label>
|
|
|
|
<input type="text" name="nunux_keeper_api_key" id="form-nunux-keeper-api-key" value="{{ .form.NunuxKeeperAPIKey }}">
|
|
|
|
</div>
|
2017-12-19 05:52:46 +01:00
|
|
|
|
2017-12-03 04:32:14 +01:00
|
|
|
<div class="buttons">
|
|
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2018-02-01 06:57:20 +01:00
|
|
|
<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>
|
2017-11-22 04:37:47 +01:00
|
|
|
<div class="panel">
|
|
|
|
<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">
|
2018-02-04 00:33:17 +01:00
|
|
|
<a href="javascript:location.href='{{ rootURL }}{{ route "bookmarklet" }}?uri='+encodeURIComponent(window.location.href)">{{ t "Add to Miniflux" }}</a>
|
2017-11-22 04:37:47 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>{{ t "Drag and drop this link to your bookmarks." }}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ end }}
|