summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_content.tmpl
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-11-19 12:33:42 -0600
committerLauris BH <lauris@nix.lv>2019-11-19 20:33:42 +0200
commiteb0359cad4b725553c8bca3e95ada9c789c5da0b (patch)
tree2c0fe67141d8d4bafe785c5bf22f0d3b35d64866 /templates/repo/issue/view_content.tmpl
parentaf7f08bca87852d453848be93e2044e697820b87 (diff)
downloadgitea-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/issue/view_content.tmpl')
-rw-r--r--templates/repo/issue/view_content.tmpl8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 2379d21e9c..5b5d7c45d7 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -29,11 +29,7 @@
{{if not $.Repository.IsArchived}}
<div class="ui right actions">
{{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index) }}
- {{if or .IsIssueWriter .IsIssuePoster}}
- <div class="item action">
- <a class="edit-content" href="#"><i class="octicon octicon-pencil"></i></a>
- </div>
- {{end}}
+ {{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" .Issue "delete" false "diff" false }}
</div>
{{end}}
</div>
@@ -45,7 +41,7 @@
<span class="no-content">{{.i18n.Tr "repo.issues.no_content"}}</span>
{{end}}
</div>
- <div class="raw-content hide">{{.Issue.Content}}</div>
+ <div id="comment-{{.Issue.ID}}" class="raw-content hide">{{.Issue.Content}}</div>
<div class="edit-content-zone hide" data-write="issue-{{.Issue.ID}}-write" data-preview="issue-{{.Issue.ID}}-preview" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/content" data-context="{{.RepoLink}}" data-attachment-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/attachments" data-view-attachment-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/view-attachments"></div>
</div>
{{$reactions := .Issue.Reactions.GroupByType}}