+54
-31
appview/pages/pages.go
+54
-31
appview/pages/pages.go
···············func (p *Pages) EditRepoDescriptionFragment(w io.Writer, params RepoDescriptionParams) error {···func (p *Pages) EditIssueCommentFragment(w io.Writer, params EditIssueCommentParams) error {···func (p *Pages) SingleIssueCommentFragment(w io.Writer, params SingleIssueCommentParams) error {······func (p *Pages) PullCompareBranchesFragment(w io.Writer, params PullCompareBranchesParams) error {······func (p *Pages) PullCompareForkBranchesFragment(w io.Writer, params PullCompareForkBranchesParams) error {·········
-33
appview/pages/templates/fragments/cloneInstructions.html
-33
appview/pages/templates/fragments/cloneInstructions.html
···-<section class="mt-4 p-6 rounded bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto flex flex-col gap-4">-<code class="dark:text-gray-100">git remote add origin git@{{.RepoInfo.Knot}}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code>-<span class="bg-gray-100 dark:bg-gray-700 p-1 mr-1 font-mono text-sm rounded select-none dark:text-white">HTTP</span>-<code class="dark:text-gray-100">git clone https://tangled.sh/{{ .RepoInfo.OwnerWithAt }}/{{ .RepoInfo.Name }}</code>-<span class="bg-gray-100 dark:bg-gray-700 p-1 mr-1 font-mono text-sm rounded select-none dark:text-white">SSH</span>-<code class="dark:text-gray-100">git clone git@{{.RepoInfo.Knot}}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code>-<p class="py-2 text-gray-500 dark:text-gray-400">Note that for self-hosted knots, clone URLs may be different based on your setup.</p>
+2
-2
appview/pages/templates/fragments/diff.html
appview/pages/templates/repo/fragments/diff.html
+2
-2
appview/pages/templates/fragments/diff.html
appview/pages/templates/repo/fragments/diff.html
······<span class="rounded p-1 select-none bg-red-100 text-red-700 dark:bg-red-800/50 dark:text-red-400">-{{ .Deletions }}</span>
+1
-1
appview/pages/templates/fragments/editIssueComment.html
appview/pages/templates/repo/issues/fragments/editIssueComment.html
+1
-1
appview/pages/templates/fragments/editIssueComment.html
appview/pages/templates/repo/issues/fragments/editIssueComment.html
+1
-1
appview/pages/templates/fragments/editRepoDescription.html
appview/pages/templates/repo/fragments/editRepoDescription.html
+1
-1
appview/pages/templates/fragments/editRepoDescription.html
appview/pages/templates/repo/fragments/editRepoDescription.html
···<form hx-put="/{{ .RepoInfo.FullName }}/description" hx-target="this" hx-swap="outerHTML" class="flex flex-wrap gap-2">
+1
-1
appview/pages/templates/fragments/follow.html
appview/pages/templates/user/fragments/follow.html
+1
-1
appview/pages/templates/fragments/follow.html
appview/pages/templates/user/fragments/follow.html
+1
-1
appview/pages/templates/fragments/issueComment.html
appview/pages/templates/repo/issues/fragments/issueComment.html
+1
-1
appview/pages/templates/fragments/issueComment.html
appview/pages/templates/repo/issues/fragments/issueComment.html
+1
-1
appview/pages/templates/fragments/pullActions.html
appview/pages/templates/repo/pulls/fragments/pullActions.html
+1
-1
appview/pages/templates/fragments/pullActions.html
appview/pages/templates/repo/pulls/fragments/pullActions.html
+1
-1
appview/pages/templates/fragments/pullCompareBranches.html
appview/pages/templates/repo/pulls/fragments/pullCompareBranches.html
+1
-1
appview/pages/templates/fragments/pullCompareBranches.html
appview/pages/templates/repo/pulls/fragments/pullCompareBranches.html
+1
-1
appview/pages/templates/fragments/pullCompareForks.html
appview/pages/templates/repo/pulls/fragments/pullCompareForks.html
+1
-1
appview/pages/templates/fragments/pullCompareForks.html
appview/pages/templates/repo/pulls/fragments/pullCompareForks.html
+1
-1
appview/pages/templates/fragments/pullCompareForksBranches.html
appview/pages/templates/repo/pulls/fragments/pullCompareForksBranches.html
+1
-1
appview/pages/templates/fragments/pullCompareForksBranches.html
appview/pages/templates/repo/pulls/fragments/pullCompareForksBranches.html
+1
-1
appview/pages/templates/fragments/pullNewComment.html
appview/pages/templates/repo/pulls/fragments/pullNewComment.html
+1
-1
appview/pages/templates/fragments/pullNewComment.html
appview/pages/templates/repo/pulls/fragments/pullNewComment.html
+1
-1
appview/pages/templates/fragments/pullPatchUpload.html
appview/pages/templates/repo/pulls/fragments/pullPatchUpload.html
+1
-1
appview/pages/templates/fragments/pullPatchUpload.html
appview/pages/templates/repo/pulls/fragments/pullPatchUpload.html
+1
-1
appview/pages/templates/fragments/pullResubmit.html
appview/pages/templates/repo/pulls/fragments/pullResubmit.html
+1
-1
appview/pages/templates/fragments/pullResubmit.html
appview/pages/templates/repo/pulls/fragments/pullResubmit.html
-41
appview/pages/templates/fragments/repoActions.html
-41
appview/pages/templates/fragments/repoActions.html
···-<button class="btn text-sm no-underline hover:no-underline flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed" disabled title="Empty repositories cannot be forked">-<a class="btn text-sm no-underline hover:no-underline flex items-center gap-2" href="/{{ .FullName }}/fork">
+1
-1
appview/pages/templates/fragments/repoDescription.html
appview/pages/templates/repo/fragments/repoDescription.html
+1
-1
appview/pages/templates/fragments/repoDescription.html
appview/pages/templates/repo/fragments/repoDescription.html
+2
-2
appview/pages/templates/layouts/repobase.html
+2
-2
appview/pages/templates/layouts/repobase.html
···
+1
-1
appview/pages/templates/repo/commit.html
+1
-1
appview/pages/templates/repo/commit.html
+1
-1
appview/pages/templates/repo/empty.html
+1
-1
appview/pages/templates/repo/empty.html
+51
appview/pages/templates/repo/fragments/cloneInstructions.html
+51
appview/pages/templates/repo/fragments/cloneInstructions.html
···+class="mt-4 p-6 rounded bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto flex flex-col gap-4"+class="bg-gray-100 dark:bg-gray-700 p-1 mr-1 font-mono text-sm rounded select-none dark:text-white"+class="bg-gray-100 dark:bg-gray-700 p-1 mr-1 font-mono text-sm rounded select-none dark:text-white"
+47
appview/pages/templates/repo/fragments/repoActions.html
+47
appview/pages/templates/repo/fragments/repoActions.html
···+class="btn text-sm no-underline hover:no-underline flex items-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed"
+209
-172
appview/pages/templates/repo/index.html
+209
-172
appview/pages/templates/repo/index.html
···-<meta name="forge:file" content="https://tangled.sh/{{ .RepoInfo.FullName }}/blob/{ref}/{path}">-<meta name="forge:line" content="https://tangled.sh/{{ .RepoInfo.FullName }}/blob/{ref}/{path}#L{line}">-<meta name="go-import" content="tangled.sh/{{ .RepoInfo.FullNameWithoutAt }} git https://tangled.sh/{{ .RepoInfo.FullName }}">+content="tangled.sh/{{ .RepoInfo.FullNameWithoutAt }} git https://tangled.sh/{{ .RepoInfo.FullName }}"-onchange="window.location.href = '/{{ .RepoInfo.FullName }}/tree/' + encodeURIComponent(this.value)"-class="p-1 border border-gray-200 bg-white dark:bg-gray-800 dark:text-white dark:border-gray-700"+onchange="window.location.href = '/{{ .RepoInfo.FullName }}/tree/' + encodeURIComponent(this.value)"+class="p-1 border border-gray-200 bg-white dark:bg-gray-800 dark:text-white dark:border-gray-700"-<div id="file-tree" class="col-span-1 pr-2 md:border-r md:border-gray-200 dark:md:border-gray-700">-class="py-1/2 px-1 bg-gray-200 hover:bg-gray-400 rounded dark:bg-gray-700 dark:hover:bg-gray-600"+class="py-1/2 px-1 bg-gray-200 hover:bg-gray-400 rounded dark:bg-gray-700 dark:hover:bg-gray-600"-<span class="text-xs rounded bg-gray-100 dark:bg-gray-700 text-black dark:text-white font-mono px-2 mx-1/2 inline-flex items-center">+class="text-xs rounded bg-gray-100 dark:bg-gray-700 text-black dark:text-white font-mono px-2 mx-1/2 inline-flex items-center"-<section class="mt-4 p-6 rounded bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto {{ if not .Raw }} prose dark:prose-invert dark:[&_pre]:bg-gray-900 dark:[&_code]:text-gray-300 dark:[&_pre_code]:bg-gray-900 dark:[&_pre]:border dark:[&_pre]:border-gray-700 {{ end }}">-<pre class="dark:bg-gray-900 dark:text-gray-200 dark:border dark:border-gray-700 dark:p-4 dark:rounded">{{ .HTMLReadme }}</pre>+class="mt-4 p-6 rounded bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto {{ if not .Raw }}+class="dark:bg-gray-900 dark:text-gray-200 dark:border dark:border-gray-700 dark:p-4 dark:rounded"
+1
-1
appview/pages/templates/repo/issues/issue.html
+1
-1
appview/pages/templates/repo/issues/issue.html
···-{{ template "fragments/issueComment" (dict "RepoInfo" $.RepoInfo "LoggedInUser" $.LoggedInUser "DidHandleMap" $.DidHandleMap "Issue" $.Issue "Comment" .)}}+{{ template "repo/issues/fragments/issueComment" (dict "RepoInfo" $.RepoInfo "LoggedInUser" $.LoggedInUser "DidHandleMap" $.DidHandleMap "Issue" $.Issue "Comment" .)}}
+1
-1
appview/pages/templates/repo/pulls/new.html
+1
-1
appview/pages/templates/repo/pulls/new.html
+1
-1
appview/pages/templates/repo/pulls/patch.html
+1
-1
appview/pages/templates/repo/pulls/patch.html
+1
-1
appview/pages/templates/repo/pulls/pull.html
+1
-1
appview/pages/templates/repo/pulls/pull.html
···-{{ template "fragments/pullActions" (dict "LoggedInUser" $.LoggedInUser "Pull" $.Pull "RepoInfo" $.RepoInfo "RoundNumber" .RoundNumber "MergeCheck" $.MergeCheck "ResubmitCheck" $.ResubmitCheck) }}+{{ template "repo/pulls/fragments/pullActions" (dict "LoggedInUser" $.LoggedInUser "Pull" $.Pull "RepoInfo" $.RepoInfo "RoundNumber" .RoundNumber "MergeCheck" $.MergeCheck "ResubmitCheck" $.ResubmitCheck) }}<div class="bg-white dark:bg-gray-800 rounded drop-shadow-sm px-6 py-4 w-fit dark:text-white">