aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-26 02:48:17 +0800
committerUnknwon <u@gogs.io>2016-07-26 02:48:17 +0800
commit899e7994595f5fc500de8cdf39e1b737f9f00982 (patch)
tree1477940293968f1ee2781e04209b7038e9774d95 /templates
parent2295fafb34e2467f3b380a4db8832aa2c70ecc5a (diff)
downloadgitea-899e7994595f5fc500de8cdf39e1b737f9f00982.tar.gz
gitea-899e7994595f5fc500de8cdf39e1b737f9f00982.zip
#1601 support delete issue comment
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/repo/issue/view_content.tmpl11
2 files changed, 9 insertions, 4 deletions
diff --git a/templates/.VERSION b/templates/.VERSION
index 38466f9fca..c7d0091beb 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.9.54.0724 \ No newline at end of file
+0.9.55.0726 \ No newline at end of file
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 1d03b53d41..ada98d3090 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -20,7 +20,9 @@
<span class="text grey"><a {{if gt .Issue.Poster.ID 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.Name}}</a> {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}</span>
<div class="ui right actions">
{{if .IsIssueOwner}}
- <a class="edit-content item" href="#"><i class="octicon octicon-pencil"></i></a>
+ <div class="item action">
+ <a class="edit-content" href="#"><i class="octicon octicon-pencil"></i></a>
+ </div>
{{end}}
</div>
</div>
@@ -52,7 +54,7 @@
<!-- 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE_REF, 4 = COMMIT_REF, 5 = COMMENT_REF, 6 = PULL_REF -->
{{if eq .Type 0}}
- <div class="comment">
+ <div class="comment" id="{{.HashTag}}">
<a class="avatar" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>
<img src="{{.Poster.AvatarLink}}">
</a>
@@ -72,7 +74,10 @@
</div>
{{end}}
{{if or $.IsRepositoryAdmin (eq .Poster.ID $.SignedUserID)}}
- <a class="edit-content item" href="#"><i class="octicon octicon-pencil"></i></a>
+ <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="{{$.RepoLink}}/comments/{{.ID}}/delete" data-locale="{{$.i18n.Tr "repo.issues.delete_comment_confirm"}}"><i class="octicon octicon-x"></i></a>
+ </div>
{{end}}
</div>
</div>