common.go 4.8 KB

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