2022-05-11 21:38:20 +02:00
|
|
|
{{define "title"}}Place de marché - Administration - Arcad{{end}}
|
|
|
|
{{define "body"}}
|
|
|
|
{{template "header" .}}
|
2022-06-01 17:31:21 +02:00
|
|
|
<section class="block">
|
2022-05-11 21:38:20 +02:00
|
|
|
<div class="container">
|
2022-06-01 17:31:21 +02:00
|
|
|
<div>
|
|
|
|
{{template "admin_menu" "market"}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{template "flash" .}}
|
|
|
|
<form class="mb-4 pl-2 w-full" action="/admin/market" methode="GET">
|
|
|
|
<div class="flex">
|
|
|
|
<div class="w-2/3">
|
|
|
|
<input class="p-2 w-full border rounded-l" type="text" name="search" placeholder="Rechercher une application..." value="{{ .Search }}">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button class="transform sm:w-1/3 rounded-r bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 font-bold duration-300">Rechercher</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div class="mr-4 text-right">
|
|
|
|
<b>Total</b> {{ .ResultsCount }}
|
2022-05-11 21:38:20 +02:00
|
|
|
</div>
|
2022-06-01 17:31:21 +02:00
|
|
|
{{range .Results}}
|
|
|
|
<div class="m-4 sm:block md:lg:flex w-100">
|
|
|
|
<div class="flex flex-col md:flex-row md:max-w-xl rounded-lg bg-white shadow-lg">
|
|
|
|
<div class="p-6 flex flex-col justify-start">
|
|
|
|
<h5 class="text-gray-900 text-xl font-medium mb-2"><code>{{ .Name }}</code></h5>
|
|
|
|
<p class="md:max-w-xl break-all text-gray-700 text-base mb-4 max-width">
|
|
|
|
{{ .LatestRelease.Description }}
|
|
|
|
</p>
|
|
|
|
<div class="flex justify-between">
|
|
|
|
<div>
|
|
|
|
<p class="text-gray-600 text-xs">{{ localeTimeFormat .LatestRelease.CreatedAt.Time "02/01/2006 15:04" "fr_FR" }}</p>
|
|
|
|
<p class="text-gray-600 text-xs">{{ .Owner.Username }} - V{{ .LatestRelease.Version }} </p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a class="" href="/admin/market/{{ .ID }}/install"><img class="custom-icon" src="/icons/download-solid.svg"/></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-11 21:38:20 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-01 17:31:21 +02:00
|
|
|
{{else}}
|
|
|
|
<div>
|
|
|
|
Aucun résultat.
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-05-11 21:38:20 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "body_script"}}
|
|
|
|
<script defer src="/admin.js"></script>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{template "base" .}}
|