integrations.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {{ define "title"}}{{ t "Integrations" }}{{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "Integrations" }}</h1>
  5. <ul>
  6. <li>
  7. <a href="{{ route "settings" }}">{{ t "Settings" }}</a>
  8. </li>
  9. <li>
  10. <a href="{{ route "sessions" }}">{{ t "Sessions" }}</a>
  11. </li>
  12. {{ if .user.IsAdmin }}
  13. <li>
  14. <a href="{{ route "users" }}">{{ t "Users" }}</a>
  15. </li>
  16. {{ end }}
  17. <li>
  18. <a href="{{ route "about" }}">{{ t "About" }}</a>
  19. </li>
  20. </ul>
  21. </section>
  22. <form method="post" autocomplete="off" action="{{ route "updateIntegration" }}">
  23. <input type="hidden" name="csrf" value="{{ .csrf }}">
  24. {{ if .errorMessage }}
  25. <div class="alert alert-error">{{ t .errorMessage }}</div>
  26. {{ end }}
  27. <h3>Pinboard</h3>
  28. <label>
  29. <input type="checkbox" name="pinboard_enabled" value="1" {{ if .form.PinboardEnabled }}checked{{ end }}> {{ t "Enable Pinboard" }}
  30. </label>
  31. <label for="form-pinboard-token">{{ t "Pinboard API Token" }}</label>
  32. <input type="password" name="pinboard_token" id="form-pinboard-token" value="{{ .form.PinboardToken }}">
  33. <label for="form-pinboard-tags">{{ t "Pinboard Tags" }}</label>
  34. <input type="text" name="pinboard_tags" id="form-pinboard-tags" value="{{ .form.PinboardTags }}">
  35. <label>
  36. <input type="checkbox" name="pinboard_mark_as_unread" value="1" {{ if .form.PinboardMarkAsUnread }}checked{{ end }}> {{ t "Mark bookmark as unread" }}
  37. </label>
  38. <div class="buttons">
  39. <button type="submit" class="button button-primary" data-label-loading="{{ t "Loading..." }}">{{ t "Update" }}</button>
  40. </div>
  41. </form>
  42. <div class="panel">
  43. <h3>{{ t "Bookmarklet" }}</h3>
  44. <p>{{ t "This special link allows you to subscribe to a website directly by using a bookmark in your web browser." }}</p>
  45. <div class="bookmarklet">
  46. <a href="javascript:location.href='{{ baseURL }}{{ route "bookmarklet" }}?uri='+encodeURIComponent(window.location.href)">{{ t "Add to Miniflux" }}</a>
  47. </div>
  48. <p>{{ t "Drag and drop this link to your bookmarks." }}</p>
  49. </div>
  50. {{ end }}