about.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {{ define "title"}}{{ t "page.about.title" }}{{ end }}
  2. {{ define "page_header"}}
  3. <section class="page-header" aria-labelledby="page-header-title">
  4. <h1 id="page-header-title">{{ t "page.about.title" }}</h1>
  5. {{ template "settings_menu" dict "user" .user }}
  6. </section>
  7. {{ end }}
  8. {{ define "content"}}
  9. <div class="panel">
  10. <h3>Miniflux</h3>
  11. <ul>
  12. <li>
  13. <strong>{{ t "page.about.version" }}</strong>
  14. {{ if contains .version "dev" }}
  15. {{ .version }}
  16. {{ else }}
  17. <a href="https://github.com/miniflux/v2/releases/tag/{{ .version }}">{{ .version }}</a>
  18. {{ end }}
  19. </li>
  20. {{ if .commit }}
  21. <li>
  22. <strong>{{ t "page.about.git_commit" }}</strong>
  23. {{ if startsWith .commit "Unknown" }}
  24. {{ .commit }}
  25. {{ else }}
  26. <a href="https://github.com/miniflux/v2/commit/{{ .commit }}">{{ .commit }}</a>
  27. {{ end }}
  28. </li>
  29. {{ end }}
  30. <li><strong>{{ t "page.about.build_date" }}</strong> {{ .build_date }}</li>
  31. <li><strong>{{t "page.about.go_version" }}</strong> {{ .go_version }}</li>
  32. {{ if .user.IsAdmin }}
  33. <li><strong>{{ t "page.about.postgres_version" }}</strong> {{ .postgres_version }}</li>
  34. <li><strong>{{t "page.about.db_usage" }}</strong> {{ .db_usage }}</li>
  35. {{ end }}
  36. </ul>
  37. </div>
  38. <div class="panel">
  39. <h3>{{ t "page.about.credits" }}</h3>
  40. <ul>
  41. <li><strong>{{ t "page.about.author" }}</strong> Frédéric Guillot</li>
  42. <li><strong>{{ t "page.about.license" }}</strong> <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a></li>
  43. </ul>
  44. </div>
  45. {{ if .user.IsAdmin }}
  46. <div class="panel">
  47. <h3>{{ t "page.about.global_config_options" }}</h3>
  48. <ul>
  49. {{ range .globalConfigOptions }}
  50. <li><code><strong>{{ .Key }}</strong>={{ .Value }}</code></li>
  51. {{ end }}
  52. </ul>
  53. </div>
  54. {{ end }}
  55. {{ end }}