[Notice] Announcing the End of Demo Server [Read me]

comment: add title attribute on delete buttons
@51ce2db6f880d95b70c4c475491d0256bd25d5c0
--- app/views/board/view.scala.html
+++ app/views/board/view.scala.html
... | ... | @@ -89,7 +89,7 @@ |
89 | 89 |
<a href="#comment-@comment.id" class="ago">@utils.TemplateHelper.agoString(comment.ago())</a> |
90 | 90 |
@if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){ |
91 | 91 |
<span class="edit pull-right"> |
92 |
- <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.BoardApp.deleteComment(project.owner, project.name, post.getNumber, comment.id)"><i class="yobicon-trash"></i></button> |
|
92 |
+ <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.BoardApp.deleteComment(project.owner, project.name, post.getNumber, comment.id)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
93 | 93 |
</span> |
94 | 94 |
} |
95 | 95 |
</div> |
--- app/views/code/diff.scala.html
+++ app/views/code/diff.scala.html
... | ... | @@ -99,7 +99,7 @@ |
99 | 99 |
</span> |
100 | 100 |
@if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){ |
101 | 101 |
<span class="edit pull-right"> |
102 |
- <button class="btn-transparent pull-right close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(project.owner, project.name, commit.getId, comment.id)"><i class="yobicon-trash"></i></button> |
|
102 |
+ <button class="btn-transparent pull-right close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(project.owner, project.name, commit.getId, comment.id)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
103 | 103 |
</span> |
104 | 104 |
} |
105 | 105 |
</div> |
--- app/views/code/svnDiff.scala.html
+++ app/views/code/svnDiff.scala.html
... | ... | @@ -132,7 +132,7 @@ |
132 | 132 |
</span> |
133 | 133 |
@if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){ |
134 | 134 |
<span class="edit pull-right"> |
135 |
- <button class="btn-transparent pull-right close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(project.owner, project.name, commit.getId, comment.id)"><i class="yobicon-trash"></i></button> |
|
135 |
+ <button class="btn-transparent pull-right close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(project.owner, project.name, commit.getId, comment.id)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
136 | 136 |
</span> |
137 | 137 |
} |
138 | 138 |
</div> |
--- app/views/git/diff.scala.html
+++ app/views/git/diff.scala.html
... | ... | @@ -106,7 +106,7 @@ |
106 | 106 |
</span> |
107 | 107 |
@if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){ |
108 | 108 |
<span class="edit pull-right"> |
109 |
- <button class="btn-transparent pull-right close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(pull.fromProject.owner, pull.fromProject.name, commit.getId, comment.id)"><i class="yobicon-trash"></i></button> |
|
109 |
+ <button class="btn-transparent pull-right close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(pull.fromProject.owner, pull.fromProject.name, commit.getId, comment.id)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
110 | 110 |
</span> |
111 | 111 |
} |
112 | 112 |
</div> |
--- app/views/git/partial_commit_comment.scala.html
+++ app/views/git/partial_commit_comment.scala.html
... | ... | @@ -52,7 +52,7 @@ |
52 | 52 |
</span> |
53 | 53 |
@if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){ |
54 | 54 |
<span class="edit pull-right"> |
55 |
- <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(pull.fromProject.owner, pull.fromProject.name, comment.commitId, comment.id)"><i class="yobicon-trash"></i></button> |
|
55 |
+ <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(pull.fromProject.owner, pull.fromProject.name, comment.commitId, comment.id)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
56 | 56 |
</span> |
57 | 57 |
} |
58 | 58 |
</div> |
... | ... | @@ -80,7 +80,7 @@ |
80 | 80 |
</span> |
81 | 81 |
@if(isAllowed(UserApp.currentUser(), reply.asResource(), Operation.DELETE)){ |
82 | 82 |
<span class="edit pull-right"> |
83 |
- <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(pull.fromProject.owner, pull.fromProject.name, reply.commitId, reply.id)"><i class="yobicon-trash"></i></button> |
|
83 |
+ <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.CodeHistoryApp.deleteComment(pull.fromProject.owner, pull.fromProject.name, reply.commitId, reply.id)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
84 | 84 |
</span> |
85 | 85 |
} |
86 | 86 |
</div> |
--- app/views/git/partial_pull_request_comment.scala.html
+++ app/views/git/partial_pull_request_comment.scala.html
... | ... | @@ -60,7 +60,7 @@ |
60 | 60 |
|
61 | 61 |
@if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE) && !isLineComment(comment)){ |
62 | 62 |
<span class="edit pull-right"> |
63 |
- <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.PullRequestCommentApp.deleteComment(comment.id)"><i class="yobicon-trash"></i></button> |
|
63 |
+ <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.PullRequestCommentApp.deleteComment(comment.id)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
64 | 64 |
</span> |
65 | 65 |
} |
66 | 66 |
</div> |
--- app/views/issue/partial_comments.scala.html
+++ app/views/issue/partial_comments.scala.html
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 |
<a href="#comment-@comment.id" class="ago">@utils.TemplateHelper.agoString(comment.ago())</a> |
88 | 88 |
@if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){ |
89 | 89 |
<span class="edit pull-right"> |
90 |
- <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.IssueApp.deleteComment(project.owner, project.name, issue.getNumber, comment.id)"><i class="yobicon-trash"></i></button> |
|
90 |
+ <button type="button" class="btn-transparent close" data-toggle="comment-delete" data-request-uri="@routes.IssueApp.deleteComment(project.owner, project.name, issue.getNumber, comment.id)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
91 | 91 |
</span> |
92 | 92 |
} |
93 | 93 |
</div> |
--- app/views/partial_diff_comment_on_line.scala.html
+++ app/views/partial_diff_comment_on_line.scala.html
... | ... | @@ -24,7 +24,7 @@ |
24 | 24 |
<span class="ago"><a href="#comment-@comment.id">@utils.TemplateHelper.agoString(utils.JodaDateUtil.ago(comment.createdDate))</a></span> |
25 | 25 |
@if(utils.AccessControl.isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){ |
26 | 26 |
<span class="edit pull-right"> |
27 |
- <button class="btn-transparent pull-right close" data-toggle="comment-delete" data-request-uri="@routes.CommentApp.delete(comment.asResource.getType.resource, comment.asResource.getId)"><i class="yobicon-trash"></i></button> |
|
27 |
+ <button class="btn-transparent pull-right close" data-toggle="comment-delete" data-request-uri="@routes.CommentApp.delete(comment.asResource.getType.resource, comment.asResource.getId)" title="@Messages("common.comment.delete")"><i class="yobicon-trash"></i></button> |
|
28 | 28 |
</span> |
29 | 29 |
} |
30 | 30 |
</div> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?