]> source.dussan.org Git - gitea.git/commitdiff
Make code review ceckboxes clickable (#20481)
authorVladimir Yakovlev <nagos@inbox.ru>
Tue, 26 Jul 2022 13:11:39 +0000 (16:11 +0300)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2022 13:11:39 +0000 (15:11 +0200)
templates/repo/issue/view_content/comments.tmpl

index 852c87f2f3f66aba2308c3970ea0d51318fefbcd..e284d5aef5e9ca9f01dd0e21300442c1d7e22820 100644 (file)
                                                        </div>
                                                </div>
                                                <div class="ui attached segment comment-body">
-                                                       <div class="render-content markup">
+                                                       <div class="render-content markup" {{if or $.Permission.IsAdmin $.HasIssuesOrPullsWritePermission (and $.IsSigned (eq $.SignedUserID .PosterID))}}data-can-edit="true"{{end}}>
                                                                {{if .RenderedContent}}
                                                                        {{.RenderedContent|Str2html}}
                                                                {{else}}