2023-03-14 15:22:52 +00:00
|
|
|
{{ template "header" .}}
|
|
|
|
{{ template "admin_header" .}}
|
|
|
|
|
|
|
|
<div class="sm:flex sm:space-x-4 space-y-4 sm:space-y-0">
|
|
|
|
<div class="sm:overflow-hidden ">
|
2023-05-27 11:58:08 +00:00
|
|
|
<div class="space-y-2 bg-gray-50 dark:bg-gray-800 py-6 px-6 rounded-md border border-gray-200 dark:border-gray-700">
|
2023-03-14 15:22:52 +00:00
|
|
|
<div>
|
2023-05-27 11:58:08 +00:00
|
|
|
<span class="text-base font-bold leading-6 text-slate-700 dark:text-slate-300">Versions</span>
|
2023-03-14 15:22:52 +00:00
|
|
|
</div>
|
|
|
|
<table class="table-fixed">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2023-05-27 11:58:08 +00:00
|
|
|
<td class="whitespace-nowrap py-2 pr-3 text-sm text-slate-700 dark:text-slate-300 ">Opengist</td>
|
|
|
|
<td class="whitespace-nowrap px-2 py-2 text-sm font-medium text-slate-700 dark:text-slate-300">{{ .opengistVersion }}</td>
|
2023-03-14 15:22:52 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-05-27 11:58:08 +00:00
|
|
|
<td class="whitespace-nowrap py-2 pr-3 text-sm text-slate-700 dark:text-slate-300 ">Go</td>
|
|
|
|
<td class="whitespace-nowrap px-2 py-2 text-sm font-medium text-slate-700 dark:text-slate-300">{{ .goVersion }}</td>
|
2023-03-14 15:22:52 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-05-27 11:58:08 +00:00
|
|
|
<td class="whitespace-nowrap py-2 pr-3 text-sm text-slate-700 dark:text-slate-300 ">Git</td>
|
|
|
|
<td class="whitespace-nowrap px-2 py-2 text-sm font-medium text-slate-700 dark:text-slate-300">{{ .gitVersion }} </td>
|
2023-03-14 15:22:52 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="sm:overflow-hidden ">
|
2023-05-27 11:58:08 +00:00
|
|
|
<div class="space-y-2 bg-gray-50 dark:bg-gray-800 py-6 px-6 rounded-md border border-gray-200 dark:border-gray-700">
|
2023-03-14 15:22:52 +00:00
|
|
|
<div>
|
2023-05-27 11:58:08 +00:00
|
|
|
<span class="text-base font-bold leading-6 text-slate-700 dark:text-slate-300">Stats</span>
|
2023-03-14 15:22:52 +00:00
|
|
|
</div>
|
|
|
|
<table class="table-fixed">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2023-05-27 11:58:08 +00:00
|
|
|
<td class="whitespace-nowrap py-2 pr-3 text-sm text-slate-700 dark:text-slate-300 ">Users</td>
|
|
|
|
<td class="whitespace-nowrap px-2 py-2 text-sm font-medium text-slate-700 dark:text-slate-300">{{ .countUsers }}</td>
|
2023-03-14 15:22:52 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-05-27 11:58:08 +00:00
|
|
|
<td class="whitespace-nowrap py-2 pr-3 text-sm text-slate-700 dark:text-slate-300 ">Gists</td>
|
|
|
|
<td class="whitespace-nowrap px-2 py-2 text-sm font-medium text-slate-700 dark:text-slate-300">{{ .countGists }}</td>
|
2023-03-14 15:22:52 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-05-27 11:58:08 +00:00
|
|
|
<td class="whitespace-nowrap py-2 pr-3 text-sm text-slate-700 dark:text-slate-300 ">SSH keys</td>
|
|
|
|
<td class="whitespace-nowrap px-2 py-2 text-sm font-medium text-slate-700 dark:text-slate-300">{{ .countKeys }}</td>
|
2023-03-14 15:22:52 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-19 00:51:25 +00:00
|
|
|
|
|
|
|
<div class="sm:overflow-hidden ">
|
2023-05-27 11:58:08 +00:00
|
|
|
<div class="space-y-2 bg-gray-50 dark:bg-gray-800 py-6 px-6 rounded-md border border-gray-200 dark:border-gray-700">
|
2023-03-19 00:51:25 +00:00
|
|
|
<div>
|
2023-05-27 11:58:08 +00:00
|
|
|
<span class="text-base font-bold leading-6 text-slate-700 dark:text-slate-300">Actions</span>
|
2023-03-19 00:51:25 +00:00
|
|
|
</div>
|
|
|
|
<div class="space-y-2">
|
2023-04-16 15:48:21 +00:00
|
|
|
<form action="/admin-panel/sync-fs" method="POST">
|
2023-03-19 00:51:25 +00:00
|
|
|
{{ .csrfHtml }}
|
2023-05-27 11:58:08 +00:00
|
|
|
<button type="submit" {{ if .syncReposFromFS }}disabled="disabled"{{ end }} class="whitespace-nowrap text-slate-700 dark:text-slate-300{{ if .syncReposFromFS }} text-slate-500 cursor-not-allowed {{ end }}rounded border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-800 px-2.5 py-2 text-xs font-medium text-gray-700 dark:text-white shadow-sm hover:bg-gray-100 dark:hover:bg-gray-700 hover:border-gray-500 hover:text-slate-700 dark:hover:text-slate-300 focus:outline-none focus:ring-1 focus:border-primary-500 focus:ring-primary-500 leading-3">
|
2023-08-12 20:53:17 +00:00
|
|
|
Synchronize gists from filesystem
|
2023-03-19 00:51:25 +00:00
|
|
|
</button>
|
|
|
|
</form>
|
2023-04-16 15:48:21 +00:00
|
|
|
<form action="/admin-panel/sync-db" method="POST">
|
2023-03-19 00:51:25 +00:00
|
|
|
{{ .csrfHtml }}
|
2023-05-27 11:58:08 +00:00
|
|
|
<button type="submit" {{ if .syncReposFromDB }}disabled="disabled"{{ end }} class="whitespace-nowrap text-slate-700 dark:text-slate-300{{ if .syncReposFromDB }} text-slate-500 cursor-not-allowed {{ end }}rounded border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-800 px-2.5 py-2 text-xs font-medium text-gray-700 dark:text-white shadow-sm hover:bg-gray-100 dark:hover:bg-gray-700 hover:border-gray-500 hover:text-slate-700 dark:hover:text-slate-300 focus:outline-none focus:ring-1 focus:border-primary-500 focus:ring-primary-500 leading-3">
|
2023-08-12 20:53:17 +00:00
|
|
|
Synchronize gists from database
|
2023-03-19 00:51:25 +00:00
|
|
|
</button>
|
|
|
|
</form>
|
2023-09-04 09:11:54 +00:00
|
|
|
<form action="/admin-panel/gc-repos" method="POST">
|
|
|
|
{{ .csrfHtml }}
|
|
|
|
<button type="submit" {{ if .gitGcRepos }}disabled="disabled"{{ end }} class="whitespace-nowrap text-slate-700 dark:text-slate-300{{ if .gitGcRepos }} text-slate-500 cursor-not-allowed {{ end }}rounded border border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-800 px-2.5 py-2 text-xs font-medium text-gray-700 dark:text-white shadow-sm hover:bg-gray-100 dark:hover:bg-gray-700 hover:border-gray-500 hover:text-slate-700 dark:hover:text-slate-300 focus:outline-none focus:ring-1 focus:border-primary-500 focus:ring-primary-500 leading-3">
|
|
|
|
Garbage collect git repositories
|
|
|
|
</button>
|
|
|
|
</form>
|
2023-03-19 00:51:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-14 15:22:52 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ template "admin_footer" .}}
|
|
|
|
{{ template "footer" .}}
|