common.go 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // Code generated by go generate; DO NOT EDIT.
  2. // 2017-12-16 17:48:32.321995978 -0800 PST m=+0.055632657
  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. {{ if .flashMessage }}
  85. <div class="flash-message alert alert-success">{{ .flashMessage }}</div>
  86. {{ end }}
  87. {{ if .flashErrorMessage }}
  88. <div class="flash-error-message alert alert-error">{{ .flashErrorMessage }}</div>
  89. {{ end }}
  90. <main>
  91. {{template "content" .}}
  92. </main>
  93. </body>
  94. </html>
  95. {{ end }}`,
  96. "pagination": `{{ define "pagination" }}
  97. <div class="pagination">
  98. <div class="pagination-prev">
  99. {{ if .ShowPrev }}
  100. <a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ end }}" data-page="previous">{{ t "Previous" }}</a>
  101. {{ else }}
  102. {{ t "Previous" }}
  103. {{ end }}
  104. </div>
  105. <div class="pagination-next">
  106. {{ if .ShowNext }}
  107. <a href="{{ .Route }}?offset={{ .NextOffset }}" data-page="next">{{ t "Next" }}</a>
  108. {{ else }}
  109. {{ t "Next" }}
  110. {{ end }}
  111. </div>
  112. </div>
  113. {{ end }}
  114. `,
  115. }
  116. var templateCommonMapChecksums = map[string]string{
  117. "entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
  118. "layout": "ff5e3d87a48e4d3aeceda4aabe6c2c2f607006c6b6e83dfcab6c5eb255a1e6f2",
  119. "pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
  120. }