common.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Code generated by go generate; DO NOT EDIT.
  2. // 2017-11-25 10:47:30.370347794 -0800 PST m=+0.026475900
  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">
  30. <meta name="robots" content="noindex,nofollow">
  31. <meta name="referrer" content="no-referrer">
  32. {{ if .csrf }}
  33. <meta name="X-CSRF-Token" value="{{ .csrf }}">
  34. {{ end }}
  35. <title>{{template "title" .}} - Miniflux</title>
  36. {{ if .user }}
  37. <link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" .user.Theme }}">
  38. {{ else }}
  39. <link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" "white" }}">
  40. {{ end }}
  41. <script type="text/javascript" src="{{ route "javascript" }}" defer></script>
  42. </head>
  43. <body data-entries-status-url="{{ route "updateEntriesStatus" }}">
  44. {{ if .user }}
  45. <header class="header">
  46. <nav>
  47. <div class="logo">
  48. <a href="{{ route "unread" }}">Mini<span>flux</span></a>
  49. </div>
  50. <ul>
  51. <li {{ if eq .menu "unread" }}class="active"{{ end }}>
  52. <a href="{{ route "unread" }}" data-page="unread">{{ t "Unread" }}</a>
  53. {{ if gt .countUnread 0 }}
  54. <span class="unread-counter" title="Unread articles">({{ .countUnread }})</span>
  55. {{ end }}
  56. </li>
  57. <li {{ if eq .menu "history" }}class="active"{{ end }}>
  58. <a href="{{ route "history" }}" data-page="history">{{ t "History" }}</a>
  59. </li>
  60. <li {{ if eq .menu "feeds" }}class="active"{{ end }}>
  61. <a href="{{ route "feeds" }}" data-page="feeds">{{ t "Feeds" }}</a>
  62. </li>
  63. <li {{ if eq .menu "categories" }}class="active"{{ end }}>
  64. <a href="{{ route "categories" }}" data-page="categories">{{ t "Categories" }}</a>
  65. </li>
  66. <li {{ if eq .menu "settings" }}class="active"{{ end }}>
  67. <a href="{{ route "settings" }}" data-page="settings">{{ t "Settings" }}</a>
  68. </li>
  69. <li>
  70. <a href="{{ route "logout" }}" title="Logged as {{ .user.Username }}">{{ t "Logout" }}</a>
  71. </li>
  72. </ul>
  73. </nav>
  74. </header>
  75. {{ end }}
  76. <section class="main">
  77. {{template "content" .}}
  78. </section>
  79. </body>
  80. </html>
  81. {{ end }}`,
  82. "pagination": `{{ define "pagination" }}
  83. <div class="pagination">
  84. <div class="pagination-prev">
  85. {{ if .ShowPrev }}
  86. <a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ end }}" data-page="previous">{{ t "Previous" }}</a>
  87. {{ else }}
  88. {{ t "Previous" }}
  89. {{ end }}
  90. </div>
  91. <div class="pagination-next">
  92. {{ if .ShowNext }}
  93. <a href="{{ .Route }}?offset={{ .NextOffset }}" data-page="next">{{ t "Next" }}</a>
  94. {{ else }}
  95. {{ t "Next" }}
  96. {{ end }}
  97. </div>
  98. </div>
  99. {{ end }}
  100. `,
  101. }
  102. var templateCommonMapChecksums = map[string]string{
  103. "entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
  104. "layout": "8be69cc93fdc99eb36841ae645f58488bd675670507dcdb2de0e593602893178",
  105. "pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
  106. }