alpha
Login
or
Join now
4uffin.bsky.social
/
core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
My own copy of Tangled :)
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add confirm for comment deletion
author
Akshay
date
1 year ago
(Mar 27, 2025, 10:33 PM UTC)
commit
ea11ecd7
ea11ecd77a1acab4fdd60b78614d16c11ec3a4cf
parent
32304c5d
32304c5dedac43b9da02e6c58345a5096340c7c6
+3
-2
2 changed files
Expand all
Collapse all
Unified
Split
appview
pages
templates
fragments
issueComment.html
repo
issues
issue.html
+2
-1
appview/pages/templates/fragments/issueComment.html
Reviewed
···
28
28
{{ end }}
29
29
</a>
30
30
31
31
-
{{ $isCommentOwner := eq $.LoggedInUser.Did .OwnerDid }}
31
31
+
{{ $isCommentOwner := and $.LoggedInUser (eq $.LoggedInUser.Did .OwnerDid) }}
32
32
{{ if and $isCommentOwner (not .Deleted) }}
33
33
<button
34
34
class="btn px-2 py-1 text-sm"
···
41
41
<button
42
42
class="btn px-2 py-1 text-sm text-red-500"
43
43
hx-delete="/{{ $.RepoInfo.FullName }}/issues/{{ .Issue }}/comment/{{ .CommentId }}/"
44
44
+
hx-confirm="Are you sure you want to delete your comment?"
44
45
hx-swap="outerHTML"
45
46
hx-target="#comment-container-{{.CommentId}}"
46
47
>
+1
-1
appview/pages/templates/repo/issues/issue.html
Reviewed
···
107
107
</form>
108
108
</div>
109
109
{{ else }}
110
110
-
<div class="bg-white rounded drop-shadow-sm px-6 py-4 mt-8">
110
110
+
<div class="bg-white dark:bg-gray-800 dark:text-gray-400 rounded drop-shadow-sm px-6 py-4 mt-8">
111
111
<div class="absolute left-8 -top-8 w-px h-8 bg-gray-300 dark:bg-gray-700" ></div>
112
112
<a href="/login" class="underline">login</a> to join the discussion
113
113
</div>