forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

fix pull templates when not logged-in; pin lucide

Changed files
+24 -23
appview
pages
templates
repo
pulls
+20 -19
appview/pages/templates/repo/pulls/pull.html
···
{{ with $rootObj }}
{{ if .LoggedInUser }}
-
<div class="bg-white rounded drop-shadow-sm py-2 px-4 relative w-full md:w-96">
-
<div class="absolute left-8 -top-2 w-px h-2 bg-gray-300"></div>
-
<div class="text-sm text-gray-500">
-
{{ index .DidHandleMap .LoggedInUser.Did }}
+
<div class="bg-white rounded drop-shadow-sm py-2 px-4 relative w-full md:w-96">
+
<div class="absolute left-8 -top-2 w-px h-2 bg-gray-300"></div>
+
<div class="text-sm text-gray-500">
+
{{ index .DidHandleMap .LoggedInUser.Did }}
+
</div>
+
<form
+
hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/comment"
+
hx-swap="none">
+
<input type="hidden" name="submissionId" value="{{ $submissionId }}">
+
<textarea
+
name="body"
+
class="w-full border-0 h-8 focus:outline-none focus:ring-0 px-0 py-1"
+
placeholder="Add to the discussion..." /></textarea>
+
<div class="flex justify-end">
+
<button type="submit" class="btn text-sm mt-2">comment</button>
+
</div>
+
<div id="pull-comment"></div>
+
</form>
</div>
-
<form
-
hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/comment"
-
hx-swap="none">
-
<input type="hidden" name="submissionId" value="{{ $submissionId }}">
-
<textarea
-
name="body"
-
class="w-full border-0 h-8 focus:outline-none focus:ring-0 px-0 py-1"
-
placeholder="Add to the discussion..." /></textarea>
-
<div class="flex justify-end">
-
<button type="submit" class="btn text-sm mt-2">comment</button>
-
</div>
-
<div id="pull-comment"></div>
-
</form>
{{ else }}
-
<div class="bg-white rounded drop-shadow-sm px-6 py-4 mt-8">
+
<div class="bg-white rounded drop-shadow-sm px-6 py-4 text-sm w-fit">
+
<div class="absolute left-8 -top-2 w-px h-2 bg-gray-300"></div>
<a href="/login" class="underline">login</a> to join the discussion
</div>
-
</div>
{{ end }}
{{ end }}
{{ end }}
+3 -3
flake.lock
···
"lucide-src": {
"flake": false,
"locked": {
-
"narHash": "sha256-h3LsMyt4gaugENlg07Uxl96j89O5B2ZaO6fQ07cjZgQ=",
+
"narHash": "sha256-5ipNSxTlQ7627lGgsyZxk7vS1sr9RkrlR8/QMj2Zg6s=",
"type": "file",
-
"url": "https://unpkg.com/lucide@latest"
+
"url": "https://unpkg.com/lucide@0.482.0"
},
"original": {
"type": "file",
-
"url": "https://unpkg.com/lucide@latest"
+
"url": "https://unpkg.com/lucide@0.482.0"
}
},
"nixpkgs": {
+1 -1
flake.nix
···
flake = false;
};
lucide-src = {
-
url = "https://unpkg.com/lucide@latest";
+
url = "https://unpkg.com/lucide@0.482.0";
flake = false;
};
ia-fonts-src = {