diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-05-23 16:14:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 17:14:03 +0300 |
commit | 6021fbfe7a4e73c209eeea514a929fcb5598d63e (patch) | |
tree | 0058ceeaa2df9d20655aae7ad78c82f3e0f7623e /templates | |
parent | b4d10598c9be1ba8008c5a47ef1cd3612e99331a (diff) | |
download | gitea-6021fbfe7a4e73c209eeea514a929fcb5598d63e.tar.gz gitea-6021fbfe7a4e73c209eeea514a929fcb5598d63e.zip |
Make tasklist checkboxes clickable (#15791)
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/diff/comments.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index c55da8576e..86e314dc50 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -51,7 +51,7 @@ </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 $.root.IsSigned (eq $.root.SignedUserID .PosterID))}}data-can-edit="true"{{end}}> {{if .RenderedContent}} {{.RenderedContent|Str2html}} {{else}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 35c7cdd7a2..00ce61921d 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -57,7 +57,7 @@ </div> </div> <div class="ui attached segment comment-body"> - <div class="render-content markup"> + <div class="render-content markup" {{if or $.Permission.IsAdmin $.HasIssuesOrPullsWritePermission $.IsIssuePoster}}data-can-edit="true"{{end}}> {{if .Issue.RenderedContent}} {{.Issue.RenderedContent|Str2html}} {{else}} diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 77757207cf..53005cc820 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -64,7 +64,7 @@ </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}} @@ -552,7 +552,7 @@ </div> </div> <div class="text comment-content"> - <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}} |