common.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // Code generated by go generate; DO NOT EDIT.
  2. // 2017-12-22 11:25:01.981502305 -0800 PST m=+0.046470067
  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 }} title="{{ t "Keyboard Shortcut: %s" "g u" }}">
  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 "starred" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g b" }}">
  66. <a href="{{ route "starred" }}" data-page="starred">{{ t "Starred" }}</a>
  67. </li>
  68. <li {{ if eq .menu "history" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g h" }}">
  69. <a href="{{ route "history" }}" data-page="history">{{ t "History" }}</a>
  70. </li>
  71. <li {{ if eq .menu "feeds" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g f" }}">
  72. <a href="{{ route "feeds" }}" data-page="feeds">{{ t "Feeds" }}</a>
  73. </li>
  74. <li {{ if eq .menu "categories" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g c" }}">
  75. <a href="{{ route "categories" }}" data-page="categories">{{ t "Categories" }}</a>
  76. </li>
  77. <li {{ if eq .menu "settings" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g s" }}">
  78. <a href="{{ route "settings" }}" data-page="settings">{{ t "Settings" }}</a>
  79. </li>
  80. <li>
  81. <a href="{{ route "logout" }}" title="Logged as {{ .user.Username }}">{{ t "Logout" }}</a>
  82. </li>
  83. </ul>
  84. </nav>
  85. </header>
  86. {{ end }}
  87. {{ if .flashMessage }}
  88. <div class="flash-message alert alert-success">{{ .flashMessage }}</div>
  89. {{ end }}
  90. {{ if .flashErrorMessage }}
  91. <div class="flash-error-message alert alert-error">{{ .flashErrorMessage }}</div>
  92. {{ end }}
  93. <main>
  94. {{template "content" .}}
  95. </main>
  96. </body>
  97. </html>
  98. {{ end }}`,
  99. "pagination": `{{ define "pagination" }}
  100. <div class="pagination">
  101. <div class="pagination-prev">
  102. {{ if .ShowPrev }}
  103. <a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ end }}" data-page="previous">{{ t "Previous" }}</a>
  104. {{ else }}
  105. {{ t "Previous" }}
  106. {{ end }}
  107. </div>
  108. <div class="pagination-next">
  109. {{ if .ShowNext }}
  110. <a href="{{ .Route }}?offset={{ .NextOffset }}" data-page="next">{{ t "Next" }}</a>
  111. {{ else }}
  112. {{ t "Next" }}
  113. {{ end }}
  114. </div>
  115. </div>
  116. {{ end }}
  117. `,
  118. }
  119. var templateCommonMapChecksums = map[string]string{
  120. "entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
  121. "layout": "ade38fbe1058c8dac86b973c289a716e3f97289735e7ad8e8d1731dc6807e38c",
  122. "pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
  123. }