diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-11-19 12:33:42 -0600 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-11-19 20:33:42 +0200 |
commit | eb0359cad4b725553c8bca3e95ada9c789c5da0b (patch) | |
tree | 2c0fe67141d8d4bafe785c5bf22f0d3b35d64866 /templates/repo/diff/comments.tmpl | |
parent | af7f08bca87852d453848be93e2044e697820b87 (diff) | |
download | gitea-eb0359cad4b725553c8bca3e95ada9c789c5da0b.tar.gz gitea-eb0359cad4b725553c8bca3e95ada9c789c5da0b.zip |
Context menus for comments (#9043)
* Add quote replies
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'templates/repo/diff/comments.tmpl')
-rw-r--r-- | templates/repo/diff/comments.tmpl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index 85c84c6bac..cc62f19a32 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -21,12 +21,7 @@ {{end}} {{end}} {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID) }} - {{if or $.root.Permission.IsAdmin (eq .Poster.ID $.root.SignedUserID)}} - <div class="item action"> - <a class="edit-content" href="#"><i class="octicon octicon-pencil"></i></a> - <a class="delete-comment" href="#" data-comment-id={{.HashTag}} data-url="{{$.root.RepoLink}}/comments/{{.ID}}/delete" data-locale="{{$.root.i18n.Tr "repo.issues.delete_comment_confirm"}}"><i class="octicon octicon-x"></i></a> - </div> - {{end}} + {{template "repo/issue/view_content/context_menu" Dict "ctx" $.root "item" . "delete" true "diff" true }} </div> </div> <div class="ui attached segment"> @@ -37,7 +32,7 @@ <span class="no-content">{{$.root.i18n.Tr "repo.issues.no_content"}}</span> {{end}} </div> - <div class="raw-content hide">{{.Content}}</div> + <div id="comment-{{.ID}}" class="raw-content hide">{{.Content}}</div> <div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.root.RepoLink}}/comments/{{.ID}}" data-context="{{$.root.RepoLink}}"></div> </div> {{$reactions := .Reactions.GroupByType}} |