kjkmadness 2014-02-06
comment: add title attribute on delete buttons
@51ce2db6f880d95b70c4c475491d0256bd25d5c0
app/views/board/view.scala.html
--- app/views/board/view.scala.html
+++ app/views/board/view.scala.html
@@ -89,7 +89,7 @@
                             <a href="#comment-@comment.id" class="ago">@utils.TemplateHelper.agoString(comment.ago())</a>
                             @if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){
                             <span class="edit pull-right">
-                                <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>
+                                <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>
                             </span>
                             }
                         </div>
app/views/code/diff.scala.html
--- app/views/code/diff.scala.html
+++ app/views/code/diff.scala.html
@@ -99,7 +99,7 @@
                                 </span>
                                 @if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){
                                 <span class="edit pull-right">
-                                    <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>
+                                    <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>
                                 </span>
                                 }
                             </div>
app/views/code/svnDiff.scala.html
--- app/views/code/svnDiff.scala.html
+++ app/views/code/svnDiff.scala.html
@@ -132,7 +132,7 @@
                                 </span>
                                 @if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){
                                 <span class="edit pull-right">
-                                    <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>
+                                    <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>
                                 </span>
                                 }
                             </div>
app/views/git/diff.scala.html
--- app/views/git/diff.scala.html
+++ app/views/git/diff.scala.html
@@ -106,7 +106,7 @@
                                 </span>
                                 @if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){
                                 <span class="edit pull-right">
-                                    <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>
+                                    <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>
                                 </span>
                                 }
                             </div>
app/views/git/partial_commit_comment.scala.html
--- app/views/git/partial_commit_comment.scala.html
+++ app/views/git/partial_commit_comment.scala.html
@@ -52,7 +52,7 @@
                   </span>
                   @if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){
                   <span class="edit pull-right">
-                      <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>
+                      <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>
                   </span>
                   }
               </div>
@@ -80,7 +80,7 @@
                   </span>
                   @if(isAllowed(UserApp.currentUser(), reply.asResource(), Operation.DELETE)){
                   <span class="edit pull-right">
-                      <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>
+                      <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>
                   </span>
                   }
               </div>
app/views/git/partial_pull_request_comment.scala.html
--- app/views/git/partial_pull_request_comment.scala.html
+++ app/views/git/partial_pull_request_comment.scala.html
@@ -60,7 +60,7 @@
 
             @if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE) && !isLineComment(comment)){
             <span class="edit pull-right">
-                <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>
+                <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>
             </span>
             }
         </div>
app/views/issue/partial_comments.scala.html
--- app/views/issue/partial_comments.scala.html
+++ app/views/issue/partial_comments.scala.html
@@ -87,7 +87,7 @@
                 <a href="#comment-@comment.id" class="ago">@utils.TemplateHelper.agoString(comment.ago())</a>
                 @if(isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){
                 <span class="edit pull-right">
-                    <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>
+                    <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>
                 </span>
                 }
             </div>
app/views/partial_diff_comment_on_line.scala.html
--- app/views/partial_diff_comment_on_line.scala.html
+++ app/views/partial_diff_comment_on_line.scala.html
@@ -24,7 +24,7 @@
                         <span class="ago"><a href="#comment-@comment.id">@utils.TemplateHelper.agoString(utils.JodaDateUtil.ago(comment.createdDate))</a></span>
                         @if(utils.AccessControl.isAllowed(UserApp.currentUser(), comment.asResource(), Operation.DELETE)){
                         <span class="edit pull-right">
-                            <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>
+                            <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>
                         </span>
                         }
                     </div>
Add a comment
List