common.go 9.7 KB

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