common.go 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // Code generated by go generate; DO NOT EDIT.
  2. // 2017-12-24 14:32:38.881953886 -0800 PST m=+0.038978781
  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" title="Unread articles">({{ .countUnread }})</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. </body>
  98. </html>
  99. {{ end }}`,
  100. "pagination": `{{ define "pagination" }}
  101. <div class="pagination">
  102. <div class="pagination-prev">
  103. {{ if .ShowPrev }}
  104. <a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ end }}" data-page="previous">{{ t "Previous" }}</a>
  105. {{ else }}
  106. {{ t "Previous" }}
  107. {{ end }}
  108. </div>
  109. <div class="pagination-next">
  110. {{ if .ShowNext }}
  111. <a href="{{ .Route }}?offset={{ .NextOffset }}" data-page="next">{{ t "Next" }}</a>
  112. {{ else }}
  113. {{ t "Next" }}
  114. {{ end }}
  115. </div>
  116. </div>
  117. {{ end }}
  118. `,
  119. }
  120. var templateCommonMapChecksums = map[string]string{
  121. "entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
  122. "layout": "778c5cd419c3bd0e35141b1c17bc6775c58b36c650b7566c27ccfd51a6f1417d",
  123. "pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
  124. }