common.go 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. // Code generated by go generate; DO NOT EDIT.
  2. // 2017-12-28 18:55:07.408638507 -0800 PST m=+0.035359093
  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. "layout": `{{ define "base" }}
  24. <!DOCTYPE html>
  25. <html>
  26. <head>
  27. <meta charset="utf-8">
  28. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  29. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  30. <meta name="mobile-web-app-capable" content="yes">
  31. <meta name="apple-mobile-web-app-title" content="Miniflux">
  32. <link rel="manifest" href="{{ route "webManifest" }}">
  33. <meta name="robots" content="noindex,nofollow">
  34. <meta name="referrer" content="no-referrer">
  35. <link rel="icon" type="image/png" href="{{ route "appIcon" "filename" "favicon.png" }}">
  36. <link rel="apple-touch-icon" href="{{ route "appIcon" "filename" "touch-icon-iphone.png" }}">
  37. <link rel="apple-touch-icon" sizes="72x72" href="{{ route "appIcon" "filename" "touch-icon-ipad.png" }}">
  38. <link rel="apple-touch-icon" sizes="114x114" href="{{ route "appIcon" "filename" "touch-icon-iphone-retina.png" }}">
  39. <link rel="apple-touch-icon" sizes="144x144" href="{{ route "appIcon" "filename" "touch-icon-ipad-retina.png" }}">
  40. <link rel="shortcut icon" type="image/x-icon" href="{{ route "favicon" }}">
  41. {{ if .csrf }}
  42. <meta name="X-CSRF-Token" value="{{ .csrf }}">
  43. {{ end }}
  44. <title>{{template "title" .}} - Miniflux</title>
  45. {{ if .user }}
  46. <link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" .user.Theme }}">
  47. {{ else }}
  48. <link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" "white" }}">
  49. {{ end }}
  50. <script type="text/javascript" src="{{ route "javascript" }}" defer></script>
  51. </head>
  52. <body data-entries-status-url="{{ route "updateEntriesStatus" }}">
  53. {{ if .user }}
  54. <header class="header">
  55. <nav>
  56. <div class="logo">
  57. <a href="{{ route "unread" }}">Mini<span>flux</span></a>
  58. </div>
  59. <ul>
  60. <li {{ if eq .menu "unread" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g u" }}">
  61. <a href="{{ route "unread" }}" data-page="unread">{{ t "Unread" }}</a>
  62. {{ if gt .countUnread 0 }}
  63. <span class="unread-counter-wrapper">(<span class="unread-counter">{{ .countUnread }}</span>)</span>
  64. {{ end }}
  65. </li>
  66. <li {{ if eq .menu "starred" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g b" }}">
  67. <a href="{{ route "starred" }}" data-page="starred">{{ t "Starred" }}</a>
  68. </li>
  69. <li {{ if eq .menu "history" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g h" }}">
  70. <a href="{{ route "history" }}" data-page="history">{{ t "History" }}</a>
  71. </li>
  72. <li {{ if eq .menu "feeds" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g f" }}">
  73. <a href="{{ route "feeds" }}" data-page="feeds">{{ t "Feeds" }}</a>
  74. </li>
  75. <li {{ if eq .menu "categories" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g c" }}">
  76. <a href="{{ route "categories" }}" data-page="categories">{{ t "Categories" }}</a>
  77. </li>
  78. <li {{ if eq .menu "settings" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g s" }}">
  79. <a href="{{ route "settings" }}" data-page="settings">{{ t "Settings" }}</a>
  80. </li>
  81. <li>
  82. <a href="{{ route "logout" }}" title="Logged as {{ .user.Username }}">{{ t "Logout" }}</a>
  83. </li>
  84. </ul>
  85. </nav>
  86. </header>
  87. {{ end }}
  88. {{ if .flashMessage }}
  89. <div class="flash-message alert alert-success">{{ .flashMessage }}</div>
  90. {{ end }}
  91. {{ if .flashErrorMessage }}
  92. <div class="flash-error-message alert alert-error">{{ .flashErrorMessage }}</div>
  93. {{ end }}
  94. <main>
  95. {{template "content" .}}
  96. </main>
  97. <template id="keyboard-shortcuts">
  98. <div id="modal-left">
  99. <a href="#" class="btn-close-modal">x</a>
  100. <h3>{{ t "Keyboard Shortcuts" }}</h3>
  101. <div class="keyboard-shortcuts">
  102. <p>{{ t "Sections Navigation" }}</p>
  103. <ul>
  104. <li>{{ t "Go to unread" }} = <strong>g + u</strong></li>
  105. <li>{{ t "Go to bookmarks" }} = <strong>g + b</strong></li>
  106. <li>{{ t "Go to history" }} = <strong>g + h</strong></li>
  107. <li>{{ t "Go to feeds" }} = <strong>g + f</strong></li>
  108. <li>{{ t "Go to categories" }} = <strong>g + c</strong></li>
  109. <li>{{ t "Go to settings" }} = <strong>g + s</strong></li>
  110. <li>{{ t "Show keyboard shortcuts" }} = <strong>?</strong></li>
  111. </ul>
  112. <p>{{ t "Items Navigation" }}</p>
  113. <ul>
  114. <li>{{ t "Go to previous item" }} = <strong>p or j or ◄</strong></li>
  115. <li>{{ t "Go to next item" }} = <strong>n or k or ►</strong></li>
  116. </ul>
  117. <p>{{ t "Pages Navigation" }}</p>
  118. <ul>
  119. <li>{{ t "Go to previous page" }} = <strong>h</strong></li>
  120. <li>{{ t "Go to next page" }} = <strong>l</strong></li>
  121. </ul>
  122. <p>{{ t "Actions" }}</p>
  123. <ul>
  124. <li>{{ t "Open selected item" }} = <strong>o</strong></li>
  125. <li>{{ t "Open original link" }} = <strong>v</strong></li>
  126. <li>{{ t "Toggle read/unread" }} = <strong>m</strong></li>
  127. <li>{{ t "Mark current page as read" }} = <strong>A</strong></li>
  128. <li>{{ t "Download original content" }} = <strong>d</strong></li>
  129. <li>{{ t "Toggle bookmark" }} = <strong>f</strong></li>
  130. <li>{{ t "Save article" }} = <strong>s</strong></li>
  131. <li>{{ t "Close modal dialog" }} = <strong>Esc</strong></li>
  132. </ul>
  133. </div>
  134. </div>
  135. </template>
  136. </body>
  137. </html>
  138. {{ end }}`,
  139. "pagination": `{{ define "pagination" }}
  140. <div class="pagination">
  141. <div class="pagination-prev">
  142. {{ if .ShowPrev }}
  143. <a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ end }}" data-page="previous">{{ t "Previous" }}</a>
  144. {{ else }}
  145. {{ t "Previous" }}
  146. {{ end }}
  147. </div>
  148. <div class="pagination-next">
  149. {{ if .ShowNext }}
  150. <a href="{{ .Route }}?offset={{ .NextOffset }}" data-page="next">{{ t "Next" }}</a>
  151. {{ else }}
  152. {{ t "Next" }}
  153. {{ end }}
  154. </div>
  155. </div>
  156. {{ end }}
  157. `,
  158. }
  159. var templateCommonMapChecksums = map[string]string{
  160. "entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
  161. "layout": "83786d9e657a17cb531007b5639dc021b7cb2bff1a19162769b3a961a22e5087",
  162. "pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
  163. }