common.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // Code generated by go generate; DO NOT EDIT.
  2. // 2018-05-21 12:40:10.613112 +0200 CEST m=+0.010961753
  3. package template
  4. var templateCommonMap = map[string]string{
  5. "entry_pagination": `{{ define "entry_pagination" }}
  6. <div class="pagination">
  7. <div class="pagination-prev">
  8. {{ if .prevEntry }}
  9. <a href="{{ .prevEntryRoute }}" title="{{ .prevEntry.Title }}" data-page="previous">{{ t "Previous" }}</a>
  10. {{ else }}
  11. {{ t "Previous" }}
  12. {{ end }}
  13. </div>
  14. <div class="pagination-next">
  15. {{ if .nextEntry }}
  16. <a href="{{ .nextEntryRoute }}" title="{{ .nextEntry.Title }}" data-page="next">{{ t "Next" }}</a>
  17. {{ else }}
  18. {{ t "Next" }}
  19. {{ end }}
  20. </div>
  21. </div>
  22. {{ end }}`,
  23. "item_meta": `{{ define "item_meta" }}
  24. <div class="item-meta">
  25. <ul>
  26. <li>
  27. <a href="{{ route "feedEntries" "feedID" .entry.Feed.ID }}" title="{{ .entry.Feed.Title }}">{{ domain .entry.Feed.SiteURL }}</a>
  28. </li>
  29. <li>
  30. <time datetime="{{ isodate .entry.Date }}" title="{{ isodate .entry.Date }}">{{ elapsed .user.Timezone .entry.Date }}</time>
  31. </li>
  32. {{ if .hasSaveEntry }}
  33. <li>
  34. <a href="#"
  35. title="{{ t "Save this article" }}"
  36. data-save-entry="true"
  37. data-save-url="{{ route "saveEntry" "entryID" .entry.ID }}"
  38. data-label-loading="{{ t "Saving..." }}"
  39. data-label-done="{{ t "Done!" }}"
  40. >{{ t "Save" }}</a>
  41. </li>
  42. {{ end }}
  43. <li>
  44. <a href="{{ .entry.URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
  45. </li>
  46. {{ if .entry.CommentsURL }}
  47. <li>
  48. <a href="{{ .entry.CommentsURL }}" title="{{ t "View Comments" }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ t "Comments" }}</a>
  49. </li>
  50. {{ end }}
  51. <li>
  52. <a href="#"
  53. data-toggle-bookmark="true"
  54. data-bookmark-url="{{ route "toggleBookmark" "entryID" .entry.ID }}"
  55. data-label-loading="{{ t "Saving..." }}"
  56. data-label-star="☆ {{ t "Star" }}"
  57. data-label-unstar="★ {{ t "Unstar" }}"
  58. data-value="{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
  59. >{{ if .entry.Starred }}★ {{ t "Unstar" }}{{ else }}☆ {{ t "Star" }}{{ end }}</a>
  60. </li>
  61. <li>
  62. <a href="#"
  63. title="{{ t "Change entry status" }}"
  64. data-toggle-status="true"
  65. data-label-read="✔ {{ t "Read" }}"
  66. data-label-unread="✘ {{ t "Unread" }}"
  67. data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}"
  68. >{{ if eq .entry.Status "read" }}✘ {{ t "Unread" }}{{ else }}✔ {{ t "Read" }}{{ end }}</a>
  69. </li>
  70. </ul>
  71. </div>
  72. {{ end }}`,
  73. "layout": `{{ define "base" }}
  74. <!DOCTYPE html>
  75. <html>
  76. <head>
  77. <meta charset="utf-8">
  78. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  79. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  80. <meta name="mobile-web-app-capable" content="yes">
  81. <meta name="apple-mobile-web-app-title" content="Miniflux">
  82. <link rel="manifest" href="{{ route "webManifest" }}">
  83. <meta name="robots" content="noindex,nofollow">
  84. <meta name="referrer" content="no-referrer">
  85. <link rel="icon" type="image/png" href="{{ route "appIcon" "filename" "favicon.png" }}">
  86. <link rel="apple-touch-icon" href="{{ route "appIcon" "filename" "touch-icon-iphone.png" }}">
  87. <link rel="apple-touch-icon" sizes="72x72" href="{{ route "appIcon" "filename" "touch-icon-ipad.png" }}">
  88. <link rel="apple-touch-icon" sizes="114x114" href="{{ route "appIcon" "filename" "touch-icon-iphone-retina.png" }}">
  89. <link rel="apple-touch-icon" sizes="144x144" href="{{ route "appIcon" "filename" "touch-icon-ipad-retina.png" }}">
  90. <link rel="shortcut icon" type="image/x-icon" href="{{ route "favicon" }}">
  91. {{ if .csrf }}
  92. <meta name="X-CSRF-Token" value="{{ .csrf }}">
  93. {{ end }}
  94. <title>{{template "title" .}} - Miniflux</title>
  95. {{ if .user }}
  96. <link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" .user.Theme }}">
  97. {{ else }}
  98. <link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" "white" }}">
  99. {{ end }}
  100. <script type="text/javascript" src="{{ route "javascript" }}" defer></script>
  101. </head>
  102. <body data-entries-status-url="{{ route "updateEntriesStatus" }}">
  103. {{ if .user }}
  104. <header class="header">
  105. <nav>
  106. <div class="logo">
  107. <a href="{{ route "unread" }}">Mini<span>flux</span></a>
  108. </div>
  109. <ul>
  110. <li {{ if eq .menu "unread" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g u" }}">
  111. <a href="{{ route "unread" }}" data-page="unread">{{ t "Unread" }}
  112. {{ if gt .countUnread 0 }}
  113. <span class="unread-counter-wrapper">(<span class="unread-counter">{{ .countUnread }}</span>)</span>
  114. {{ end }}
  115. </a>
  116. </li>
  117. <li {{ if eq .menu "starred" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g b" }}">
  118. <a href="{{ route "starred" }}" data-page="starred">{{ t "Starred" }}</a>
  119. </li>
  120. <li {{ if eq .menu "history" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g h" }}">
  121. <a href="{{ route "history" }}" data-page="history">{{ t "History" }}</a>
  122. </li>
  123. <li {{ if eq .menu "feeds" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g f" }}">
  124. <a href="{{ route "feeds" }}" data-page="feeds">{{ t "Feeds" }}</a>
  125. </li>
  126. <li {{ if eq .menu "categories" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g c" }}">
  127. <a href="{{ route "categories" }}" data-page="categories">{{ t "Categories" }}</a>
  128. </li>
  129. <li {{ if eq .menu "settings" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g s" }}">
  130. <a href="{{ route "settings" }}" data-page="settings">{{ t "Settings" }}</a>
  131. </li>
  132. <li>
  133. <a href="{{ route "logout" }}" title="{{ t "Logged as %s" .user.Username }}">{{ t "Logout" }}</a>
  134. </li>
  135. </ul>
  136. </nav>
  137. </header>
  138. {{ end }}
  139. {{ if .flashMessage }}
  140. <div class="flash-message alert alert-success">{{ .flashMessage }}</div>
  141. {{ end }}
  142. {{ if .flashErrorMessage }}
  143. <div class="flash-error-message alert alert-error">{{ .flashErrorMessage }}</div>
  144. {{ end }}
  145. <main>
  146. {{template "content" .}}
  147. </main>
  148. <template id="keyboard-shortcuts">
  149. <div id="modal-left">
  150. <a href="#" class="btn-close-modal">x</a>
  151. <h3>{{ t "Keyboard Shortcuts" }}</h3>
  152. <div class="keyboard-shortcuts">
  153. <p>{{ t "Sections Navigation" }}</p>
  154. <ul>
  155. <li>{{ t "Go to unread" }} = <strong>g + u</strong></li>
  156. <li>{{ t "Go to bookmarks" }} = <strong>g + b</strong></li>
  157. <li>{{ t "Go to history" }} = <strong>g + h</strong></li>
  158. <li>{{ t "Go to feeds" }} = <strong>g + f</strong></li>
  159. <li>{{ t "Go to categories" }} = <strong>g + c</strong></li>
  160. <li>{{ t "Go to settings" }} = <strong>g + s</strong></li>
  161. <li>{{ t "Show keyboard shortcuts" }} = <strong>?</strong></li>
  162. </ul>
  163. <p>{{ t "Items Navigation" }}</p>
  164. <ul>
  165. <li>{{ t "Go to previous item" }} = <strong>p or j or ◄</strong></li>
  166. <li>{{ t "Go to next item" }} = <strong>n or k or ►</strong></li>
  167. </ul>
  168. <p>{{ t "Pages Navigation" }}</p>
  169. <ul>
  170. <li>{{ t "Go to previous page" }} = <strong>h</strong></li>
  171. <li>{{ t "Go to next page" }} = <strong>l</strong></li>
  172. </ul>
  173. <p>{{ t "Actions" }}</p>
  174. <ul>
  175. <li>{{ t "Open selected item" }} = <strong>o</strong></li>
  176. <li>{{ t "Open original link" }} = <strong>v</strong></li>
  177. <li>{{ t "Toggle read/unread" }} = <strong>m</strong></li>
  178. <li>{{ t "Mark current page as read" }} = <strong>A</strong></li>
  179. <li>{{ t "Download original content" }} = <strong>d</strong></li>
  180. <li>{{ t "Toggle bookmark" }} = <strong>f</strong></li>
  181. <li>{{ t "Save article" }} = <strong>s</strong></li>
  182. <li>{{ t "Close modal dialog" }} = <strong>Esc</strong></li>
  183. </ul>
  184. </div>
  185. </div>
  186. </template>
  187. </body>
  188. </html>
  189. {{ end }}
  190. `,
  191. "pagination": `{{ define "pagination" }}
  192. <div class="pagination">
  193. <div class="pagination-prev">
  194. {{ if .ShowPrev }}
  195. <a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ end }}" data-page="previous">{{ t "Previous" }}</a>
  196. {{ else }}
  197. {{ t "Previous" }}
  198. {{ end }}
  199. </div>
  200. <div class="pagination-next">
  201. {{ if .ShowNext }}
  202. <a href="{{ .Route }}?offset={{ .NextOffset }}" data-page="next">{{ t "Next" }}</a>
  203. {{ else }}
  204. {{ t "Next" }}
  205. {{ end }}
  206. </div>
  207. </div>
  208. {{ end }}
  209. `,
  210. }
  211. var templateCommonMapChecksums = map[string]string{
  212. "entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
  213. "item_meta": "6cff8ae243f19dac936e523867d2975f70aa749b2a461ae63f6ebbca94cf7419",
  214. "layout": "2226ad243581d200b3d9499787a5ba38d6b2fff38d2ce86a40eb395a6efc17de",
  215. "pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
  216. }