Skip to content

Commit

Permalink
feat: add link to last commit directly
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Jan 2, 2025
1 parent 8bae553 commit 18e264a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/routes/settings/(nav)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@
<div class="flex flex-col items-start justify-between text-xl font-semibold text-gray-800">
<h2>Application Settings</h2>
{#if !!envPublic.PUBLIC_COMMIT_SHA}
<span class="text-sm font-light text-gray-500">
<a
href={`https://github.com/huggingface/chat-ui/commit/${envPublic.PUBLIC_COMMIT_SHA}`}
target="_blank"
rel="noreferrer"
class="text-sm font-light text-gray-500"
>
Latest deployment <span class="gap-2 font-mono"
>{envPublic.PUBLIC_COMMIT_SHA.slice(0, 7)}</span
>
</span>
</a>
{/if}
</div>
<div class="flex h-full max-w-2xl flex-col gap-2 max-sm:pt-0">
Expand Down

0 comments on commit 18e264a

Please sign in to comment.