zrcadlo https://github.com/atscan/atscan
rearrange did view, add verified badge
This commit is contained in:
rodič
009e6c0fd2
revize
53f5bac5ff
|
@ -117,9 +117,49 @@
|
|||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="text-right">Root</th>
|
||||
<th class="text-right">Head</th>
|
||||
<td>{item.repo.root}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Signing Key</th>
|
||||
<td>{item.repo.signingKey}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Commits</th>
|
||||
<td
|
||||
>{formatNumber(item.repo.commits)}
|
||||
<div class="inline-block ml-3">
|
||||
<i class="fa-solid fa-check text-green-500" /> <span class="text-sm">Verified</span>
|
||||
</div></td
|
||||
>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Size</th>
|
||||
<td>{filesize(item.repo?.size)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Records</th>
|
||||
<td
|
||||
>{formatNumber(
|
||||
Object.keys(item.repo?.collections).reduce(
|
||||
(t, c) => (t += item.repo.collections[c]),
|
||||
0
|
||||
)
|
||||
)} items</td
|
||||
>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Collections</th>
|
||||
<td
|
||||
>{#if item.repo?.collections.length > 0}{Object.keys(item.repo?.collections)
|
||||
.map((c) => `${formatNumber(item.repo.collections[c])} ${c}`)
|
||||
.join(', ')}{:else}<i>No items</i>{/if}</td
|
||||
>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Indexed</th>
|
||||
<td>{dateDistance(item.repo?.time)} ago</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Up to date?</th>
|
||||
<td
|
||||
|
@ -139,41 +179,6 @@
|
|||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Signing Key</th>
|
||||
<td>{item.repo.signingKey}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Commits</th>
|
||||
<td>{formatNumber(item.repo.commits)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Size</th>
|
||||
<td>{filesize(item.repo?.size)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Records</th>
|
||||
<td
|
||||
>{formatNumber(
|
||||
Object.keys(item.repo?.collections).reduce(
|
||||
(t, c) => (t += item.repo.collections[c]),
|
||||
0
|
||||
)
|
||||
)} items</td
|
||||
>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Collections</th>
|
||||
<td
|
||||
>{Object.keys(item.repo?.collections)
|
||||
.map((c) => `${formatNumber(item.repo.collections[c])} ${c}`)
|
||||
.join(', ')}</td
|
||||
>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right">Last indexed</th>
|
||||
<td>{dateDistance(item.repo?.time)} ago</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Načítá se…
Odkázat v novém úkolu