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

appview/issues: style edit/delete buttons with cursor-pointer

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 8f0ac9d1 7d1888ab

verified
Changed files
+4 -4
appview
pages
templates
repo
+2 -2
appview/pages/templates/repo/issues/fragments/issueCommentHeader.html
···
{{ define "editIssueComment" }}
<a
-
class="text-gray-500 dark:text-gray-400 flex gap-1 items-center group"
+
class="text-gray-500 dark:text-gray-400 flex gap-1 items-center group cursor-pointer"
hx-get="/{{ .RepoInfo.FullName }}/issues/{{ .Issue.IssueId }}/comment/{{ .Comment.Id }}/edit"
hx-swap="outerHTML"
hx-target="#comment-body-{{.Comment.Id}}">
···
{{ define "deleteIssueComment" }}
<a
-
class="text-gray-500 dark:text-gray-400 flex gap-1 items-center group"
+
class="text-gray-500 dark:text-gray-400 flex gap-1 items-center group cursor-pointer"
hx-delete="/{{ .RepoInfo.FullName }}/issues/{{ .Issue.IssueId }}/comment/{{ .Comment.Id }}/"
hx-confirm="Are you sure you want to delete your comment?"
hx-swap="outerHTML"
+2 -2
appview/pages/templates/repo/issues/issue.html
···
{{ define "editIssue" }}
<a
-
class="text-gray-500 dark:text-gray-400 flex gap-1 items-center group"
+
class="text-gray-500 dark:text-gray-400 flex gap-1 items-center group cursor-pointer"
hx-get="/{{ .RepoInfo.FullName }}/issues/{{ .Issue.IssueId }}/edit"
hx-swap="innerHTML"
hx-target="#issue-{{.Issue.IssueId}}">
···
{{ define "deleteIssue" }}
<a
-
class="text-gray-500 dark:text-gray-400 flex gap-1 items-center group"
+
class="text-gray-500 dark:text-gray-400 flex gap-1 items-center group cursor-pointer"
hx-delete="/{{ .RepoInfo.FullName }}/issues/{{ .Issue.IssueId }}/"
hx-confirm="Are you sure you want to delete your issue?"
hx-swap="none">