mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-21 17:28:00 +02:00
Small fixes (#196)
This commit is contained in:
2
templates/base/admin_footer.html
vendored
2
templates/base/admin_footer.html
vendored
@ -5,7 +5,7 @@
|
||||
{{ define "admin_footer" }}
|
||||
{{ if .urlPage }}
|
||||
<div class="flex mt-4 justify-center space-x-2">
|
||||
{{ template "pagination" . }}
|
||||
{{ template "_pagination" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</main>
|
||||
|
7
templates/pages/admin_config.html
vendored
7
templates/pages/admin_config.html
vendored
@ -14,9 +14,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<dt>Log level</dt><dd>{{ .c.LogLevel }}</dd>
|
||||
<dt>Log output</dt><dd>{{ .c.LogOutput }}</dd>
|
||||
<dt>External URL</dt><dd>{{ .c.ExternalUrl }}</dd>
|
||||
<dt>Opengist home</dt><dd>{{ .c.OpengistHome }}</dd>
|
||||
<dt>DB filename</dt><dd>{{ .c.DBFilename }}</dd>
|
||||
<dt>Index Enabled</dt><dd>{{ .c.IndexEnabled }}</dd>
|
||||
<dt>Index Dirname</dt><dd>{{ .c.IndexDirname }}</dd>
|
||||
<dt>Git default branch</dt><dd>{{ .c.GitDefaultBranch }}</dd>
|
||||
<dt>SQLite Journal Mode</dt><dd>{{ .c.SqliteJournalMode }}</dd>
|
||||
<div class="relative col-span-3 mt-4">
|
||||
<div class="absolute inset-0 flex items-center" aria-hidden="true">
|
||||
@ -52,6 +56,9 @@
|
||||
</div>
|
||||
<dt>Github Client key</dt><dd>{{ .c.GithubClientKey }}</dd>
|
||||
<dt>Github Secret</dt><dd>{{ .c.GithubSecret }}</dd>
|
||||
<dt>GitLab client Key</dt><dd>{{ .c.GitlabClientKey }}</dd>
|
||||
<dt>GitLab Secret</dt><dd>{{ .c.GitlabSecret }}</dd>
|
||||
<dt>GitLab URL</dt><dd>{{ .c.GitlabUrl }}</dd>
|
||||
<dt>Gitea client Key</dt><dd>{{ .c.GiteaClientKey }}</dd>
|
||||
<dt>Gitea Secret</dt><dd>{{ .c.GiteaSecret }}</dd>
|
||||
<dt>Gitea URL</dt><dd>{{ .c.GiteaUrl }}</dd>
|
||||
|
2
templates/pages/all.html
vendored
2
templates/pages/all.html
vendored
@ -112,7 +112,7 @@
|
||||
{{ template "_gist_preview" $nest }}
|
||||
{{ end }}
|
||||
|
||||
{{ template "pagination" . }}
|
||||
{{ template "_pagination" . }}
|
||||
{{ else }}
|
||||
<div class="text-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="mx-auto h-12 w-12 text-slate-600 dark:text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||
|
2
templates/pages/likes.html
vendored
2
templates/pages/likes.html
vendored
@ -16,7 +16,7 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="flex justify-center space-x-2 mt-4">
|
||||
{{ template "pagination" . }}
|
||||
{{ template "_pagination" . }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="text-center">
|
||||
|
2
templates/pages/revisions.html
vendored
2
templates/pages/revisions.html
vendored
@ -98,7 +98,7 @@
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="flex justify-center space-x-2">
|
||||
{{ template "pagination" . }}
|
||||
{{ template "_pagination" . }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="text-center">
|
||||
|
2
templates/pages/search.html
vendored
2
templates/pages/search.html
vendored
@ -26,7 +26,7 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ template "pagination" . }}
|
||||
{{ template "_pagination" . }}
|
||||
{{ else }}
|
||||
<div class="text-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="mx-auto h-12 w-12 text-slate-600 dark:text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{ define "pagination" }}
|
||||
{{ define "_pagination" }}
|
||||
<div class="flex justify-center space-x-2">
|
||||
{{ if .prevPage }}
|
||||
<a href="{{ $.c.ExternalUrl }}/{{ .urlPage }}?page={{ .prevPage }}{{ .urlParams }}" class="relative inline-flex items-center space-x-2 rounded-md border border-white dark:border-gray-900 bg-white dark:bg-gray-900 px-2 py-1.5 font-medium text-slate-700 dark:text-slate-300 hover:border-gray-200 dark:hover:border-gray-400 hover:text-slate-700 dark:hover:text-slate-300 focus:border-primary-500 focus:outline-none focus:ring-1 focus:ring-primary-500 text-sm leading-4">
|
Reference in New Issue
Block a user