diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-12-02 19:32:14 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-12-02 19:32:14 -0800 |
commit | 2356ddad28d50aacc8bbb3e020792d3b92f2fb4d (patch) | |
tree | a881d13d2fcc2e0d0fef2f7d26cfd2d6b044209f /server/template/html | |
parent | 2f1367a8d4c33e7c6ba459cfc6756e079c7a1af4 (diff) |
Add Pinboard integration
Diffstat (limited to 'server/template/html')
-rw-r--r-- | server/template/html/category_entries.html | 9 | ||||
-rw-r--r-- | server/template/html/create_user.html | 2 | ||||
-rw-r--r-- | server/template/html/edit_user.html | 2 | ||||
-rw-r--r-- | server/template/html/entry.html | 9 | ||||
-rw-r--r-- | server/template/html/feed_entries.html | 9 | ||||
-rw-r--r-- | server/template/html/history.html | 9 | ||||
-rw-r--r-- | server/template/html/integrations.html | 27 | ||||
-rw-r--r-- | server/template/html/unread.html | 9 |
8 files changed, 74 insertions, 2 deletions
diff --git a/server/template/html/category_entries.html b/server/template/html/category_entries.html index 77d2725..d86b103 100644 --- a/server/template/html/category_entries.html +++ b/server/template/html/category_entries.html @@ -36,6 +36,15 @@ <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time> </li> <li> + <a href="#" + title="{{ t "Save this article" }}" + data-save-entry="true" + data-save-url="{{ route "saveEntry" "entryID" .ID }}" + data-label-loading="{{ t "Saving..." }}" + data-label-done="{{ t "Done!" }}" + >{{ t "Save" }}</a> + </li> + <li> <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a> </li> </ul> diff --git a/server/template/html/create_user.html b/server/template/html/create_user.html index 225dfaa..8faab49 100644 --- a/server/template/html/create_user.html +++ b/server/template/html/create_user.html @@ -35,7 +35,7 @@ <label for="form-confirmation">{{ t "Confirmation" }}</label> <input type="password" name="confirmation" id="form-confirmation" value="{{ .form.Confirmation }}" required> - <label><input type="checkbox" name="is_admin" value="1" {{ if .form.IsAdmin }}checked="checked"{{ end }}> {{ t "Administrator" }}</label> + <label><input type="checkbox" name="is_admin" value="1" {{ if .form.IsAdmin }}checked{{ end }}> {{ t "Administrator" }}</label> <div class="buttons"> <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Save" }}</button> {{ t "or" }} <a href="{{ route "users" }}">{{ t "cancel" }}</a> diff --git a/server/template/html/edit_user.html b/server/template/html/edit_user.html index dbbd852..6611943 100644 --- a/server/template/html/edit_user.html +++ b/server/template/html/edit_user.html @@ -38,7 +38,7 @@ <label for="form-confirmation">{{ t "Confirmation" }}</label> <input type="password" name="confirmation" id="form-confirmation" value="{{ .form.Confirmation }}"> - <label><input type="checkbox" name="is_admin" value="1" {{ if .form.IsAdmin }}checked="checked"{{ end }}> {{ t "Administrator" }}</label> + <label><input type="checkbox" name="is_admin" value="1" {{ if .form.IsAdmin }}checked{{ end }}> {{ t "Administrator" }}</label> <div class="buttons"> <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button> {{ t "or" }} <a href="{{ route "users" }}">{{ t "cancel" }}</a> diff --git a/server/template/html/entry.html b/server/template/html/entry.html index 7c190d3..06e0184 100644 --- a/server/template/html/entry.html +++ b/server/template/html/entry.html @@ -6,6 +6,15 @@ <h1> <a href="{{ .entry.URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ .entry.Title }}</a> </h1> + <div class="entry-actions"> + <a href="#" + title="{{ t "Save this article" }}" + data-save-entry="true" + data-save-url="{{ route "saveEntry" "entryID" .entry.ID }}" + data-label-loading="{{ t "Saving..." }}" + data-label-done="{{ t "Done!" }}" + >{{ t "Save" }}</a> + </div> <div class="entry-meta"> <span class="entry-website"> {{ if ne .entry.Feed.Icon.IconID 0 }} diff --git a/server/template/html/feed_entries.html b/server/template/html/feed_entries.html index 384b4f6..4f23e4e 100644 --- a/server/template/html/feed_entries.html +++ b/server/template/html/feed_entries.html @@ -47,6 +47,15 @@ <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time> </li> <li> + <a href="#" + title="{{ t "Save this article" }}" + data-save-entry="true" + data-save-url="{{ route "saveEntry" "entryID" .ID }}" + data-label-loading="{{ t "Saving..." }}" + data-label-done="{{ t "Done!" }}" + >{{ t "Save" }}</a> + </li> + <li> <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a> </li> </ul> diff --git a/server/template/html/history.html b/server/template/html/history.html index d53d512..00613c7 100644 --- a/server/template/html/history.html +++ b/server/template/html/history.html @@ -36,6 +36,15 @@ <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time> </li> <li> + <a href="#" + title="{{ t "Save this article" }}" + data-save-entry="true" + data-save-url="{{ route "saveEntry" "entryID" .ID }}" + data-label-loading="{{ t "Saving..." }}" + data-label-done="{{ t "Done!" }}" + >{{ t "Save" }}</a> + </li> + <li> <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a> </li> </ul> diff --git a/server/template/html/integrations.html b/server/template/html/integrations.html index 75ffbc9..8e3f872 100644 --- a/server/template/html/integrations.html +++ b/server/template/html/integrations.html @@ -21,6 +21,33 @@ </ul> </section> +<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 }} + + <h3>Pinboard</h3> + <label> + <input type="checkbox" name="pinboard_enabled" value="1" {{ if .form.PinboardEnabled }}checked{{ end }}> {{ t "Enable Pinboard" }} + </label> + + <label for="form-pinboard-token">{{ t "Pinboard API Token" }}</label> + <input type="password" name="pinboard_token" id="form-pinboard-token" value="{{ .form.PinboardToken }}"> + + <label for="form-pinboard-tags">{{ t "Pinboard Tags" }}</label> + <input type="text" name="pinboard_tags" id="form-pinboard-tags" value="{{ .form.PinboardTags }}"> + + <label> + <input type="checkbox" name="pinboard_mark_as_unread" value="1" {{ if .form.PinboardMarkAsUnread }}checked{{ end }}> {{ t "Mark bookmark as unread" }} + </label> + + <div class="buttons"> + <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button> + </div> +</form> + <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> diff --git a/server/template/html/unread.html b/server/template/html/unread.html index 2fea1e1..a007197 100644 --- a/server/template/html/unread.html +++ b/server/template/html/unread.html @@ -36,6 +36,15 @@ <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time> </li> <li> + <a href="#" + title="{{ t "Save this article" }}" + data-save-entry="true" + data-save-url="{{ route "saveEntry" "entryID" .ID }}" + data-label-loading="{{ t "Saving..." }}" + data-label-done="{{ t "Done!" }}" + >{{ t "Save" }}</a> + </li> + <li> <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a> </li> </ul> |